Download revision tarball failed (http error 500)

Bug #1959025 reported by dolfyn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
loggerhead
Triaged
Low
Unassigned

Bug Description

When following a revision one is offered

Viewing all changes in revision N.
* browse files at revision N * compare with another revision * download diff * download tarball * view history from revision N

When selecting "download tarball" the response is:

This page isn’t working

bazaar.launchpad.net is currently unable to handle this request.
HTTP ERROR 500

Revision history for this message
Jürgen Gmach (jugmac00) wrote :

I can reproduce the problem by e.g. visiting https://bazaar.launchpad.net/~canonical-launchpad-branches/python-oops-datedir2amqp/trunk/revision/12?start_revid=12 and clicking on "download tarball" - the message/reaction varies by browser - e.g. in Firefox I only see the server error in the console.

Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
Colin Watson (cjwatson)
affects: launchpad → loggerhead
Revision history for this message
Colin Watson (cjwatson) wrote :

I found a traceback from a similar request in our logs, which hints at the problem (though not very precisely):

2022-03-23 13:37:52,970 INFO Processed err https://bazaar.launchpad.net/%7Etoykeeper/flashlight-firmware/sp10-pro/tarball/631 [0.272 seconds]: ["AttributeError: 'generator' object has no attribute 'next'\n"]
2022-03-23 13:37:52,983 ERROR Error handling request
Traceback (most recent call last):
  File "/srv/codebrowse.launchpad.net/production/launchpad2-rev-be3a23ec3b5246757c13483c7c66b30e796e0f57/env/lib/python3.5/site-packages/gunicorn/workers/gthread.py", line 334, in handle_request
    resp.write(item)
  File "/srv/codebrowse.launchpad.net/production/launchpad2-rev-be3a23ec3b5246757c13483c7c66b30e796e0f57/env/lib/python3.5/site-packages/gunicorn/http/wsgi.py", line 335, in write
    raise TypeError('%r is not a byte' % arg)
TypeError: '<html>\n<head><title>Oops! OOPS-b0af7bc960ee8b2d015e2455f1eac64b</title></head>\n<body>\n<h1>Oops!</h1>\n<p>Something broke while generating the page.\nPlease try again in a few minutes, and if the problem persists file a bug
at\n<a href="https://bugs.launchpad.net/launchpad"\n>https://bugs.launchpad.net/launchpad</a>\nand quote OOPS-ID <strong>OOPS-b0af7bc960ee8b2d015e2455f1eac64b</strong>\n</p></body></html>' is not a byte

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.