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

JSON RPC 2.0 api uses reserved error codes #909

Open
AdamSLevy opened this issue Oct 25, 2019 · 0 comments
Open

JSON RPC 2.0 api uses reserved error codes #909

AdamSLevy opened this issue Oct 25, 2019 · 0 comments

Comments

@AdamSLevy
Copy link
Contributor

According to the JSON-RPC 2.0 spec: https://www.jsonrpc.org/specification#error_object

The error codes from and including -32768 to -32000 are reserved for pre-defined errors. Any code within this range, but not defined explicitly below is reserved for future use.

But the API returns -32011 and -32009 for Repeated Commit and Missing Chain Head JSON RPC Errors respectively.

These should be changed to an error code outside of the reserved range.

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

1 participant