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 Internal error when adding a torrent file #557

Closed
1 task
peloyeje opened this issue May 14, 2022 · 1 comment
Closed
1 task

500 Internal error when adding a torrent file #557

peloyeje opened this issue May 14, 2022 · 1 comment

Comments

@peloyeje
Copy link

peloyeje commented May 14, 2022

Type: Bug Report

  • Try to follow the update procedure described in the README and try again before opening this issue.

Your Environment

Summary

An 500 error occurs when I try to add a torrent file (https://releases.ubuntu.com/22.04/ubuntu-22.04-desktop-amd64.iso.torrent) in Flood. Seems that the torrent payload is not properly decoded by rtorrent?
With the same configuration I'm able to download another test torrent via magnet link without issues.

Here is the payload of the request taken from the network inspector: https://pastebin.com/E3eyEZ4H
Here is the response:

{
    "code": -32602,
    "message": "invalid parameters: unexpected data type"
}

Here is the associated log from the rtorrent side

I'm happy to provide any additional info to help troubleshoot!

Many thanks!

Expected Behavior

Being able to add torrent files via the UI

Steps to Reproduce

See linked torrent

@peloyeje peloyeje changed the title Internal error when adding a torrent file 500 Internal error when adding a torrent file May 14, 2022
jesec added a commit that referenced this issue May 14, 2022
It appears that the "hasLoadThrow" check has some weird issues. As
pretty much all JSON capable versions have "load.throw", and the
JSON request requires base64 encoding, fold the check into "isJSONCapable".

Bug: #557
@peloyeje
Copy link
Author

peloyeje commented May 21, 2022

@jesec works like a charm with the referenced commit applied, thank you ❤️

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

No branches or pull requests

1 participant