Synchronous error callback in query command causes "unspecified" error in record stream
See original GitHub issueIn our test code we are using AS.query
and on error it gives a complete halt of system.
events.js:146
throw err;
^
Error: Uncaught, unspecified "error" event. ([object Object])
at RecordStream.emit (events.js:144:17)
at /home/ec2-user/testcode/node_modules/aerospike/lib/query.js:315:14
at Query.foreach (/home/ec2-user/testcode/node_modules/aerospike/lib/query.js:313:11)
at async.parallel.datasearch (/home/ec2-user/testcode/webnew.js:2301:27)
at /home/ec2-user/testcode/node_modules/async/dist/async.js:3671:13
at replenish (/home/ec2-user/testcode/node_modules/async/dist/async.js:884:21)
at iterateeCallback (/home/ec2-user/testcode/node_modules/async/dist/async.js:869:21)
at /home/ec2-user/testcode/node_modules/async/dist/async.js:847:20
at /home/ec2-user/testcode/node_modules/async/dist/async.js:3676:17
at /home/ec2-user/testcode/node_modules/async/dist/async.js:339:31
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (10 by maintainers)
Top Results From Across the Web
Database Engine events and errors - SQL Server
Consult this MSSQL error code list to find explanations for error messages for SQL Server database engine events.
Read more >Better Error Handling In NodeJS With Error Classes
This article is for JavaScript and NodeJS developers who want to improve error-handling in their applications.
Read more >node-mssql | Microsoft SQL Server client for Node.js
command - T-SQL command to be executed. callback(err, recordset) - A callback which is called after execution has completed, or an error has...
Read more >Node.js Error Handling Best Practices - Sematext
Learn what is Node.js error handling and why do you need it. From using middleware to catching uncaught exceptions, discover the best ways ......
Read more >Error and Transaction Handling in SQL Server Part Two
Having XACT_ABORT ON by Default? Additional Syntax for BEGIN/COMMIT/ROLLBACK TRANSACTION. SAVE TRANSACTION. SET IMPLICIT_TRANSACTIONS ON. Some More Obscure SET ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There are two main differences between batchRead and batchGet:
I would recommend that you upgrade to the v2 as it might address they issues that you are seeing.
Great 👍