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

[Bug] aria2.addTorrent can't handle options, resulting: "Bad Request" #2161

Open
jc3213 opened this issue Jan 11, 2024 · 0 comments
Open

[Bug] aria2.addTorrent can't handle options, resulting: "Bad Request" #2161

jc3213 opened this issue Jan 11, 2024 · 0 comments

Comments

@jc3213
Copy link

jc3213 commented Jan 11, 2024

I'm using json-rpc with javascript, I can download torrent with the json request below

{"id":"","jsonrpc":"2.0","method":"aria2.addTorrent","params":["token:mytoken","B64TORRENT"]}

But it will report Bad Request if I use any options to aria2 json-rpc.

{"id":"","jsonrpc":"2.0","method":"aria2.addTorrent","params":["token:mytoken","B64TORRENT",{"dir":"D:/mydir"}]}

The error persists even if I use empty options as {}

{"id":"","jsonrpc":"2.0","method":"aria2.addTorrent","params":["token:mytoken","B64TORRENT",{}]}

It works fine for aria2.addMetalink when downloading metalink files.

@jc3213 jc3213 changed the title aria2.addTorrent can't handle options, resulting: "Bad Request" [Bug] aria2.addTorrent can't handle options, resulting: "Bad Request" Apr 4, 2024
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