Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 on "Export .torrent file" #3797

Closed
Dmole opened this issue Aug 18, 2018 · 1 comment
Closed

500 on "Export .torrent file" #3797

Dmole opened this issue Aug 18, 2018 · 1 comment

Comments

@Dmole
Copy link
Contributor

Dmole commented Aug 18, 2018

Happens for every torrent that was from a magnet,
They were about 10% complete
Was during the "building circuits" bug due to API change
7.1.0-exp3
Regardless it's missleading to save a html file as a torrent.

<html>
  <head><title>500 - Request did not return bytes</title></head>
  <body>
    <h1>Request did not return bytes</h1>
    <p>Request: <pre>&lt;RESTRequest at 0x7fb09c4b8128 method=GET uri=/downloads/$ID/torrent clientproto=HTTP/1.1&gt;</pre><br />Resource: <pre>&lt;Tribler.Core.Modules.restapi.downloads_endpoint.DownloadExportTorrentEndpoint instance at 0x7fb07e9d3518&gt;</pre><br />Value: <pre>None</pre></p>
  </body>
</html>
@devos50
Copy link
Contributor

devos50 commented Aug 18, 2018

Thank you for your report! This is an interesting edge case and it is likely caused by the fact that there is no metadata available (yet).

I guess the easiest solution is to disable the export torrent function when a download does not have any metadata attached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants