-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unhandledrejection #996
Comments
@huineng I tried to repro the issue on my Linux system using latest code of ibm_db and latest version of nodejs. But, I am unable to reproduce it. So, added a test case too. When I run the latest updated test-async-await.js file, getting output as below for Test3:
Thanks. |
thanks Bimal for you rapid answer :) i still have the unhandled rejection and doing a debug i get the same as you
but my unhandled rejection is trowing a different message
where is that message coming from ? You are running a file, i run a webserver with node that has a specific .on('unhandledRejection') handler Thanks |
* test: add test case for issue #996 (Bimal Jha) * update adm-zip version, fix of issue #991 (Bimal Jha) * add support for nodev23.x (Bimal Jha) * add support for nodev22.x on Windows #1005 (Bimal Jha) * Update README.md doc for issue #1004 (Bimal Kumar Jha) * Axios upgrade due open vulnerability [CVE-2024-39338] (#1001) (Iván Gustavo Ortiz García) * upd: nan version to 2.20.0 (Bimal Jha) * fea: add binaries for electron_v31 (Bimal Jha) * update nan version (Bimal Jha) * update mac binaries for electron 28 (Bimal Jha) * fix adm-zip version temporarily to fix vscode install issue (Bimal Jha) * Add Linux and Windows binaries for electron version 28 (Bimal Jha) * doc: update info about JKS file for SSL Connection (Bimal Jha)
@huineng Are you able to reproduce your error using a simple test program? If not, please try making small test program. Then you can collect db2traces and we can look into trace file that which API is throwing CLI0123E error. If you can repro using small test program, try below commands to collect logs:
Capture all output of test program to a file and zip the output file along with other generated 1.* file. You can attach zip file here. |
@huineng Any update? Can we close the issue? Thanks. |
Hi Bimal, so i ran your test but i first added this line at the top of the file
and this was the result
hope this helps |
ibm_db 3.2.4. node 20.12.2
i was doing some development as usual using some
try { await conn.query(sql,bindings) } catch (err) { throw err} (or Promise.reject)
the problem was that i by mistake provided for bindings [['string']] instead of ['string']
So i got my rejecting and this had a message like
i guess this is from this line
node-ibm_db/src/odbc.cpp
Line 988 in a2f0018
fine
But then i got also a unhandledrejection with reason
so it looks to me the code doesn't stop at the first error
thanks
The text was updated successfully, but these errors were encountered: