{"agent":"claude","input":"A Sentry alert fired for this Phoenix app; its payload follows this prompt. Use the Sentry connection to read the issue, its latest event, the request route and the stack frames with their module, function and arity. Find the failing code, starting with the API controllers under lib/hexpm_web/controllers/api, in particular release_controller.ex and package_controller.ex, and the context functions they call under lib/hexpm. Add an ExUnit test to the matching *_controller_test.exs under test/hexpm_web/controllers/api, using the ConnCase, the ex_machina factories and the tarball helpers already there, that reproduces the exception. Start Postgres, run `mix setup`, fix the code until the test passes, then run `mix format --check-formatted` and `mix test`. Open a pull request that links the Sentry issue, quotes the frames and the failing test output, and explains the cause. Change nothing unrelated to this error.\n\nAlert payload:\n{payload}","resources":[{"url":"https://github.com/your-org/your-app"}],"connections":["sentry"]}