{"agent":"claude","input":"A Sentry alert fired for this Flask app; its payload follows this prompt. Use the Sentry connection to read the issue, its latest event and the in-app stack frames. Find the failing code, starting from the frames in CTFd/api/v1/challenges.py and the challenge classes in CTFd/plugins/challenges/__init__.py. Add a pytest test in tests/api/v1/test_challenges.py, built with the helpers in tests/helpers.py, that reproduces the exception, then fix the cause until that test passes. Install with uv, run `make test` with TESTING_DATABASE_URL=sqlite:// and `ruff check CTFd/ migrations/ tests/`. 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"]}