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

[BUG] JSON parse error when wrong HTTP method used #115

Open
arddluma opened this issue Jul 17, 2024 · 0 comments
Open

[BUG] JSON parse error when wrong HTTP method used #115

arddluma opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@arddluma
Copy link
Member

arddluma commented Jul 17, 2024

Describe the bug

When using /metadata endpoint using POST,PUT or other than GET request throws a weird JSON parse error

  "statusCode": 400,
  "error": "Bad Request",
  "message": "Unexpected token [ in JSON at position 15"
}

Expected behavior

Should show:
This HTTP method is not supported for this endpoint, please use GET (or POST depending on endpoint)

Steps to reproduce

Call https://arka.etherspot.io/metadata?apiKey={apikeyhere}&chainId=80002 using POST request

Additional context

No response

Operating system

macOS

Arka version or commit hash

1.2.9

@arddluma arddluma added the bug Something isn't working label Jul 17, 2024
@ch4r10t33r ch4r10t33r added the good first issue Good for newcomers label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Development

No branches or pull requests

2 participants