-
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
Crashes on Windows 7 64-bit if a bad connection string is given #21
Comments
Hey Ferno, Did you download the pre built binary from the intermediate_fixes branch ? If not please download the latest binary from the same branch which you can find inside the build.zip file. We have fixed this issue already in the latest binary. |
Are you referring to this file: https://github.com/ibmdb/node-ibm_db/blob/intermediate_fixes/build.zip ? If so, what am I supposed to do with it? This is not a Node.js package, so unzipping it to my node_modules directory doesn't work, unlike https://www.ibm.com/developerworks/community/blogs/pd/resource/ibm_db_x64.zip which I was using before. |
Yes, I am referring to the same file (https://github.com/ibmdb/node-ibm_db/blob/intermediate_fixes/build.zip). You can download the entire intermediate_fixes branch and then extract the build.zip into the same folder as the zip file. Replace the ibm_db under your node_modules with the whole intermediate_fixes branch you have downloaded. |
Ah, I am progressing further now. Thank you. Now I see this error on connection:
My connection string (sanitised) is:
This is a strange error to get because SQLSTATE 08001 indicates a communications error and the code 202 indicates an error inside GSKit:
but I am not using a key file, I am using a key database. Does |
It should work ( i assume you have installed the DB2 Runtime client or installed GSKIT... DS Driver does not ship with the GSKit as of today).
Should those filenames include the fullpath/relative path from current directory in which the process is running ? I can try to repro locally if the above doesnt solve |
Those filenames do include the relative path. In this example, the key database and stash file are both in the same directory as the Node.js application. |
Hey, |
I have found that when I use a slightly modified connection string,
, I am able to connect with no problems. Notice how I replaced |
The target DB2 server is v10.5.0, fix pack 4. |
good to know u are unblocked. What about the DB2 client version (also which client are u using for e.g. Data Server Driver package, runtime client etc), since it is the client that is processing those 'SSLClientKeyxxx' arguments |
According to the Readme file in my "IBM DATA SERVER DRIVER" directory, V9.7.6. |
ok. Any particular reason you are using a v9.7.6 client with a v10.5.4 server? Would suggest using the latest client too and treat this closed Will pass on to CLI team that without '_' in the keyword, doesnt work in 9.7.6, though doc claim it should, starting that version :-) |
On Windows 7 64-bit, using the pre-built binaries, if I use a correct connection string such as
then
ibm_db
behaves as normally. If I alter the connection string so that the target hostname and port is not a DB2 database, for examplethen Node.js crashes when
ibm_db.open(dsnString, function(err, conn) { ... })
is called:This should never happen,
ibm_db
should fail gracefully with a useful error message no matter what.The text was updated successfully, but these errors were encountered: