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

Bug: RPC errors logged, not gracefully handled #172

Closed
2 tasks done
TheRangiCrew opened this issue Oct 29, 2024 · 0 comments · Fixed by #168
Closed
2 tasks done

Bug: RPC errors logged, not gracefully handled #172

TheRangiCrew opened this issue Oct 29, 2024 · 0 comments · Fixed by #168
Assignees
Labels
bug Something isn't working

Comments

@TheRangiCrew
Copy link
Contributor

Describe the bug

When a query fails, such as invalid syntax, an RPC error is returned. However, at the moment this is only logged to the terminal rather than returned as an error meaning there is no way to tell if a query failed on the database.

Steps to reproduce

Query the database with a query using incorrect syntax. The database will reject this and send back an RPC error logged in the terminal.

Expected behaviour

Any errors the database encounters should be returned to Send() so it can be returned and handled gracefully.

SurrealDB version

surreal 2.0.4

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@TheRangiCrew TheRangiCrew added the bug Something isn't working label Oct 29, 2024
@remade remade self-assigned this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants