Bug
GET /items/99999 (non-existent id) returns HTTP 500 instead of 404.
Steps to reproduce
- Start the app (
python app.py or equivalent).
curl -i http://127.0.0.1:5000/items/99999
Expected
HTTP 404 with a JSON body like {"error": "item not found"}.
Actual
HTTP 500 Internal Server Error. Stack trace mentions a missing key / unhandled lookup in the items handler.
Environment
Python 3.12, Linux, current main.
Notes
This is an API correctness bug on the items endpoint. Please triage with normal labeling for this repo.
Bug
GET /items/99999(non-existent id) returns HTTP 500 instead of 404.Steps to reproduce
python app.pyor equivalent).curl -i http://127.0.0.1:5000/items/99999Expected
HTTP 404 with a JSON body like
{"error": "item not found"}.Actual
HTTP 500 Internal Server Error. Stack trace mentions a missing key / unhandled lookup in the items handler.
Environment
Python 3.12, Linux, current
main.Notes
This is an API correctness bug on the items endpoint. Please triage with normal labeling for this repo.