GithubHelp home page GithubHelp logo

Comments (6)

hgourvest avatar hgourvest commented on June 2, 2024

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.

DKunin avatar DKunin commented on June 2, 2024

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.

hgourvest avatar hgourvest commented on June 2, 2024

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.

DKunin avatar DKunin commented on June 2, 2024

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.

mariuz avatar mariuz commented on June 2, 2024

I agree without a test case is hard to verify and reproduce the issue

from node-firebird.

Arbane avatar Arbane commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.