-
Notifications
You must be signed in to change notification settings - Fork 251
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
REST server fixes and improvements. #5422
Conversation
except CatchableError: | ||
return err("Unexpected deserialization error") | ||
return err(RestErrorMessage.init(Http400, UnableDecodeError, | ||
[version, exc.formatMsg("<data>")])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so in general, this is where we would include a short version of the data itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes we can, but it will not be very helpful, we put escaped JSON into JSON, and so exc.formatMsg()
will not provide proper offsets in the escaped JSON.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't really matter - the point is more that the raw text usually contains an error message that the server has generated and therefore can be searched for when resolving problems .. it is a lot more useful than the json parsing error in general.
Introduce more comprehensive error reporting for block calls. Deprecate decodeEthConsensusVersion() function.
2e12d7f
to
55f996f
Compare
finalized
flag to REST API calls/eth/v1/beacon/states/{state_id}/root
/eth/v1/beacon/states/{state_id}/fork
/eth/v1/beacon/states/{state_id}/finality_checkpoints
/eth/v1/beacon/states/{state_id}/validator
/eth/v1/beacon/states/{state_id}/validators/{validator_id}
/eth/v1/beacon/states/{state_id}/validator_balances
/eth/v1/beacon/states/{state_id}/committees
/eth/v1/beacon/states/{state_id}/sync_committees
/eth/v1/beacon/states/{state_id}/randao
/eth/v1/beacon/headers
/eth/v1/beacon/headers/{block_id}
/eth/v2/beacon/blocks/{block_id}
/eth/v1/beacon/blocks/{block_id}/root
/eth/v1/beacon/blocks/{block_id}/attestations
/eth/v1/beacon/states/{state_id}/validators
- HTTP 414/eth/v1/beacon/blinded_blocks
- HTTP 415, HTTP 400 (FOO)/eth/v1/beacon/blocks
- HTTP 415/eth/v2/beacon/blocks
- HTTP 415