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

Improve error reporting #24

Open
0x009922 opened this issue May 28, 2022 · 0 comments
Open

Improve error reporting #24

0x009922 opened this issue May 28, 2022 · 0 comments
Labels
C-nice-to-have No matter in the short term enhancement New feature or request good first issue Good for newcomers

Comments

@0x009922
Copy link
Contributor

  • When you pass an invalid path param, e.g. 4123 to /blocks/{hash} (i.e. /blocks/4123), you get the following 400 error:

    $ fetch http://localhost:4000/api/v1/transactions/4123
    invalid value: string "4123", expected a 32-byte hex string
    
  • Same for query params:

    $ fetch http://localhost:4000/api/v1/blocks?page=false
    Bad Request: Bad query: Query deserialize error: invalid digit found in string
    
@0x009922 0x009922 added enhancement New feature or request C-nice-to-have No matter in the short term labels May 28, 2022
@0x009922 0x009922 added the good first issue Good for newcomers label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-nice-to-have No matter in the short term enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant