Comments (5)
Great!
I will test it and let you know
from node-firebird.
Has anyone resolved this problem?
Some silent error occurs on this line:
cb.response.removeAllListeners('error');
File: connection.js
Line: 1799
from node-firebird.
I managed to trace the internal error that occurs, and the cause is a missing function 'removeAllListeners'.
Now, how can we fix it?
TypeError: cb.response.removeAllListeners is not a function
at exports.Connection.Connection.attach (file:///test/firebird/problem_deno/node_modules/.deno/[email protected]/node_modules/node-firebird/lib/index.js:3687:21)
at file:///test/firebird/problem_deno/node_modules/.deno/[email protected]/node_modules/node-firebird/lib/index.js:1757:25
at cb (file:///test/firebird/problem_deno/node_modules/.deno/[email protected]/node_modules/node-firebird/lib/index.js:3615:13)
at doCallback (file:///test/firebird/problem_deno/node_modules/.deno/[email protected]/node_modules/node-firebird/lib/index.js:1368:5)
at file:///test/firebird/problem_deno/node_modules/.deno/[email protected]/node_modules/node-firebird/lib/index.js:3140:21
at decodeResponse (file:///test/firebird/problem_deno/node_modules/.deno/[email protected]/node_modules/node-firebird/lib/index.js:3419:24)
at Socket. (file:///test/firebird/problem_deno/node_modules/.deno/[email protected]/node_modules/node-firebird/lib/index.js:3115:13)
at Socket.emit (ext:deno_node/_stream.mjs:1851:9)
at addChunk (ext:deno_node/_stream.mjs:2873:16)
at readableAddChunk (ext:deno_node/_stream.mjs:2852:13) {stack: 'TypeError: cb.response.removeAllListeners is …eAddChunk (ext:deno_node/_stream.mjs:2852:13)', message: 'cb.response.removeAllListeners is not a function', __callSiteEvals: Array(10)}
from node-firebird.
I haven't tested it enough yet, but I at least got it working.
Everywhere socket functions are used, I added ._socket. And I manually set it where I saw it was undefined.
Example:
The solution, at least temporarily, may be along this way.
from node-firebird.
With the update to version 1.1.9, I had to redo the changes. I will attach the files here. I haven't done a full test yet, but it appears to be working.
from node-firebird.
Related Issues (20)
- 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
- sum error HOT 3
- Migratin to 4.0 error
- db.query callback hangs HOT 2
- How to use encoding KSC_5601? HOT 4
- pool may close and delete idleConnection
- Connect to a firebird 5.0 database HOT 1
- Error when using the LIKE clause in a SELECT
- Special chars returned wrong HOT 1
- BLOB data loading very slowly HOT 4
- Request: Add de option to set the default encoding from utf-8 to latin1 HOT 7
- If `<sql> RETURNING COL` fails for some reason (e.g., PK, FK, DEADLOCK conflict), any other query will throw an uncaught error
- Firebird 5 "Your user name and password are not defined" eventually HOT 2
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.