{"agent":"claude","input":"A Sentry alert fired for this Django REST Framework API; its payload follows this prompt. Use the Sentry connection to read the issue, its latest event, the request data and the in-app stack frames. Read config/settings/sentry.py, config/django/base.py and styleguide_example/api/exception_handlers.py to understand which exceptions reach Sentry, then follow the frames into the app's apis.py, selectors.py or services.py. Add a pytest test in that app's tests package, using APIClient or the service function directly with factory-boy data, that reproduces the exception from the request the event recorded, then fix the cause in the layer the frames name until the test passes. Start Postgres in the sandbox as .github/workflows/django.yml does, install requirements/local.txt, and run ruff check ., mypy --config mypy.ini styleguide_example/ and pytest. Open a pull request that links the Sentry issue, quotes the exception and the frames, and shows the test failing before the fix. Change nothing unrelated to this error. If you cannot reproduce it, open no pull request and say what you tried.\n\nAlert payload:\n{payload}","resources":[{"url":"https://github.com/your-org/your-app"}],"connections":["sentry"]}