Open gsbelarus opened 5 years ago
And, as it was discussed earlier, it would be great to get a firebird error code as well as a text error message.
Isn't this your code not handing the promise rejection? If not, test case is needed.
And, as it was discussed earlier, it would be great to get a firebird error code as well as a text error message.
That ticket is already created - #1
Isn't this your code not handing the promise rejection?
Yes, it is our code
This error is thrown by the driver when database is creating
You mean that error catched has not that question marks, and error not catched and displayed by node has it?
Seems like an issue with converting binary buffer with non-unicode characters to a string.
Is this "????" a localized Windows message?
To avoid misunderstandings.
We get this error from driver method with try {...} catch (error) {console.error(error)}
while creating database. We see it in the console:
Error: I/O error during "CreateFile (create)" operation for file "G:\WEB\JENKINS\WORKSPACE\GDMN-BACK\SRC\GDMN-BACK\DATABASES\MAIN.FDB"
-Error while trying to create file
-??????? ?? ??????? ????? ????????? ????.
The reason of error we can't understand, because we don't see error message. The error with question marks throws only on windows.
What about open a cmd.exe console and run isql non-existing-file
?
Will the same problem will happen?
For connection to non-existing-file isql
shows correct error message:
I/O error during "CreateFile (open)" operation for file "G:\WEB\TEST.FDB"
-Error while trying to open file
-The system cannot find the file specified.
Error message encoding being lost some where during propagation from firebird client library to nodejs output: