elrond-proxy-go icon indicating copy to clipboard operation
elrond-proxy-go copied to clipboard

/hyperblock/by-nonce/:metablock returns 500 when called with block nonce of the future

Open lahivee opened this issue 3 years ago • 2 comments

Hello,

The api endpoint /hyperblock/by-nonce/:metablock returns an internal server error (500) when called with a meta block nonce of the future (to yet existing nonce). A return message that symbolizes invalid input (of the 4XX line) would help to analyze the response for anomalies.

Thank you

lahivee avatar Oct 13 '21 10:10 lahivee

Hello! We are aware that HTTP codes don't follow the standard in some cases. However, changing this now will introduce breaking changes for all users so we'll postpone the refactoring until we'll prepare a version 2.

bogdan-rosianu avatar Oct 19 '21 15:10 bogdan-rosianu

Thank you for reopening this! It makes it easier to act accordingly

lahivee avatar Nov 21 '21 17:11 lahivee