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

500 server error when creating pet and asking for inventory #22

Open
chrisbartoloburlo opened this issue Apr 18, 2023 · 0 comments
Open

Comments

@chrisbartoloburlo
Copy link

When just requesting for the inventory, the second request works perfectly fine. However, when you add a pet before, it fails with a 500 server error.

curl \
  --request POST \
  --url 'http://localhost:8080/v3/pet' \
  --header 'Content-Type: application/json' \
  --data '{"id":123,"category":{},"name":"name","photoUrls":[""],"tags":[{"id":123,"name":"tag"}],"status":{}}' \
  --location \
  --max-redirs 32
curl \
  --request GET \
  --url 'http://localhost:8080/v3/store/inventory' \
  --header 'Content-Type: application/json' \
  --header 'api_key: special-key' \
  --location \
  --max-redirs 32

Response:
{"timestamp":"2023-04-18T11:45:27.999Z","status":500,"error":"Internal Server Error","message":"No message available","path":"/v3/store/inventory"}%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant