-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
RPC 'tooBusy' response should have 50x (503?) status code #4005
Comments
I agree that |
If we want to follow the HTTP status codes:
|
Just had the same thought. There's a distinction between "unexpected", infra-like error (must have an error code) and 'logic' error (200, but with an error). @intelliot I think the 404 for e.g. account not found is a bad idea as that would trigger auto-retry/failover load balancers to retry with another uplink. @intelliot @cjcobb23 I think this could be a good thing to keep in mind deciding if something needs a non-200 status code: "would the same call on another node potentially yield different (better, expected) results?"? If so: non-200 (error, so next uplink can be queried). If not (e.g. account doesn't exist, address encoding wrong, ledger sequence in the future, name it...): 200 status code but potentially with an error explaining what was wrong. So good candidates for a non-200 status code are, for example:
|
Is this related to the recent scalability issues the XRPL has been having with Trustlines? |
No. |
Fixes XRPLF#4005 Makes it possible for internal RPC Error codes to associate themselves with a non-200 HTTP status code. There are a few RPC responses in addition to tooBusy that now have non-200 HTTP status codes. This is a work in progress. I need to make sure this works with rippled RPC version 2. I've not yet done that testing.
Fixes XRPLF#4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are a few RPC responses in addition to tooBusy that now have non-OK HTTP status codes.
Fixes XRPLF#4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are a few RPC responses in addition to tooBusy that now have non-OK HTTP status codes.
Fixes XRPLF#4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are a few RPC responses in addition to tooBusy that now have non-OK HTTP status codes.
Fixes XRPLF#4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are a few RPC responses in addition to tooBusy that now have non-OK HTTP status codes.
Fixes XRPLF#4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are a few RPC responses in addition to tooBusy that now have non-OK HTTP status codes.
Fixes XRPLF#4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are a few RPC responses in addition to tooBusy that now have non-OK HTTP status codes.
Fixes XRPLF#4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are quite a number of RPC responses in addition to tooBusy that now have non-OK HTTP status codes. The new return HTTP return codes are only enabled by including "ripplerpc": "3.0" or higher in the original request. Otherwise the historical value, 200, continues to be returned.
Fixes #4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are quite a number of RPC responses in addition to tooBusy that now have non-OK HTTP status codes. The new return HTTP return codes are only enabled by including "ripplerpc": "3.0" or higher in the original request. Otherwise the historical value, 200, continues to be returned. This ensures that this is not a breaking change.
…F#4143) Fixes XRPLF#4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are quite a number of RPC responses in addition to tooBusy that now have non-OK HTTP status codes. The new return HTTP return codes are only enabled by including "ripplerpc": "3.0" or higher in the original request. Otherwise the historical value, 200, continues to be returned. This ensures that this is not a breaking change.
…F#4143) Fixes XRPLF#4005 Makes it possible for internal RPC Error Codes to associate themselves with a non-OK (200) HTTP status code. There are quite a number of RPC responses in addition to tooBusy that now have non-OK HTTP status codes. The new return HTTP return codes are only enabled by including "ripplerpc": "3.0" or higher in the original request. Otherwise the historical value, 200, continues to be returned. This ensures that this is not a breaking change.
Currently, if rippled (over RPC) returns a tooBusy response, like below, it does so with a HTTP 200 status code. This doesn't deserve a 200 status code, all is not OK, and one is definitely not getting the expected response.
I propose returning a HTTP 503 status code along with the tooBusy error message. Any error for that matter should have a non-200 HTTP status code.
By not assigning a non-200 status code:
The text was updated successfully, but these errors were encountered: