Comments (6)
It would be great I you can tell me how to reproduce the error.
You lost firebird socket connection ?
Which Firebird version do you use ?
from node-firebird.
I'll try to show you.
I use FireBird 2.5.2 on Win7.
So on the node I make a connection
fb = require("node-firebird"),
fb.attach(fboptions,
function(err, db){
if (err) {
logger.fatal("didn't connect, try again",err.message);
throw new Error("db error, reloading");
} else {
logger.info('database connected');
connectonBases['main'] = db;
}
}
Then there are several queries, some of them are made on node and some are requested from client:
For example.
function fEj(d){
var dfd = new jQuery.Deferred();
var base = connectonBases['main'];
try{base.query("select * from EVENT_JOURNAL where NPS_ID='"+d.nps_id+"' order by event_id desc rows "+d.amount+" " ,function(err,res){
dfd.resolve(res);
});} catch(err){
logger.warn("fEj",err.message)
}
return dfd.promise();
};
But there are about a 10 of them. And they all fire every 3 seconds.
Some of them can be quite big, where I fetch about 60 lines with big blobs of data.
Then I emit the result via socket to the client.
So the trouble I get is sometimes "This socket is closed" and sometimes "invalid clumplet buffer structure: string length doesn't match with clumplet" it's quite non-consistent, I can't put my finger on where is the trouble.
I'll be very grateful for any help, maybe I can somehow optimize the queries or increase the number of connections?
Thank you in advance!
from node-firebird.
If I can't reproduce your error I can't fix it.
You will have to send me the database and the code that produce these errors.
from node-firebird.
Thank you for your readiness to help.Unfortunately I can not do that, my boss forbids me due to security reasons. But thanks anyway!
from node-firebird.
I agree without a test case is hard to verify and reproduce the issue
from node-firebird.
I have issue any time then i try execute sample code.
Win7, node 0.10.11 (or previous). ANSI coded source file, FB 2.5
from node-firebird.
Related Issues (20)
- blobAsText and cyrilic symbols
- Timestamp returns wrong values
- Blobs returned from Execute Procedure
- bug in node-firebird 1.1.5 package HOT 2
- Blob error if the subtype isn't binary HOT 1
- FB4 connections and endangered legacy_auth
- Break Line in a Text field HOT 1
- encoding WIN1252 dont work as expected HOT 1
- hang when preparing statement with too many parameters on firebird 2.5
- sequentially - Reached heap limit Allocation failed
- Why do we get no result from update statements?
- TypeError: Cannot set properties of undefined (setting 'lazy_count') HOT 2
- Error: Incompatible wire encryption levels requested on client and server at doCallback HOT 2
- Error: DB connection HOT 1
- encoding WIN1253 not working. HOT 2
- deno HOT 4
- sum error HOT 2
- Migratin to 4.0 error
- db.query callback hangs HOT 2
- How to use encoding KSC_5601? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-firebird.