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

fix(sidecar): JSON-RPC error codes #658

Draft
wants to merge 2 commits into
base: unstable
Choose a base branch
from

Conversation

thedevbirb
Copy link
Contributor

Some internal errors were reported with a wrong status code, and others were not matching the JSON-RPC specification closely.
The changes required a small refactoring here and there.

Currently failing due to some axum versions mismatch, will fix!

}

impl From<CommitmentError> for JsonError {
fn from(err: CommitmentError) -> Self {
// Reference: https://www.jsonrpc.org/specification#error_object
// TODO: the custom defined ones should be clearly documented.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should write custom defined errors in the bolt documentation website

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

Successfully merging this pull request may close these issues.

1 participant