Skip to content
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

Error message encoding lost #17

Open
gsbelarus opened this issue Feb 23, 2019 · 11 comments
Open

Error message encoding lost #17

gsbelarus opened this issue Feb 23, 2019 · 11 comments

Comments

@gsbelarus
Copy link
Contributor

gsbelarus commented Feb 23, 2019

Error message encoding being lost some where during propagation from firebird client library to nodejs output:

image

@gsbelarus
Copy link
Contributor Author

And, as it was discussed earlier, it would be great to get a firebird error code as well as a text error message.

@asfernandes
Copy link
Owner

Isn't this your code not handing the promise rejection? If not, test case is needed.

@asfernandes
Copy link
Owner

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

@sywka
Copy link
Contributor

sywka commented Feb 23, 2019

Isn't this your code not handing the promise rejection?

Yes, it is our code

@sywka
Copy link
Contributor

sywka commented Feb 23, 2019

This error is thrown by the driver when database is creating

@asfernandes
Copy link
Owner

You mean that error catched has not that question marks, and error not catched and displayed by node has it?

@gsbelarus
Copy link
Contributor Author

gsbelarus commented Feb 23, 2019

Seems like an issue with converting binary buffer with non-unicode characters to a string.

@asfernandes
Copy link
Owner

Is this "????" a localized Windows message?

@sywka
Copy link
Contributor

sywka commented Feb 25, 2019

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.

@asfernandes
Copy link
Owner

What about open a cmd.exe console and run isql non-existing-file?

Will the same problem will happen?

@sywka
Copy link
Contributor

sywka commented Feb 25, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants