qBittorrent & operating system versions
qBittorrent: v4.6.2 (64-Bit)
Operating System: Raspberry Pi OS / Debian GNU/Linux 11 (bullseye)
Qt: 6.6.1
libtorrent: 2.0.9.0
What is the problem?
Trying to use the setShareLimits API method no longer works and currently returns "400 - Bad Request". I used the same request previously in a python script, which used to work as expected. I can verify that my last successful call to that API method was on November 11th 2023, but I can't pinpoint what version I was using back then, although I do update fairly regularly. I have not changed the way I call that method since.
I have tried out using other API methods, like /torrents/addTags, using the same torrent hash and session cookie, and that still succeeds as expected.
Steps to reproduce
- Use the /auth/login method to fetch a session cookie
- Use that session cookie to make a POST request to the /torrents/setShareLimits API endpoint (see below for details)
- See that the HTTP response is code 400, bad request. Checking the share limits in the WebUI shows that the intended changes were not applied.
Additional context
cURL Snippet generated by Postman:
curl --location 'https://[redacted_host]/api/v2/torrents/setShareLimits' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: SID=[redacted]' \
--data-urlencode 'hashes=[redacted]' \
--data-urlencode 'ratioLimit=13.0' \
--data-urlencode 'seedingTimeLimit=13000.0'
<< removed irrelevant logs and preferences >>
qBittorrent & operating system versions
qBittorrent: v4.6.2 (64-Bit)
Operating System: Raspberry Pi OS / Debian GNU/Linux 11 (bullseye)
Qt: 6.6.1
libtorrent: 2.0.9.0
What is the problem?
Trying to use the
setShareLimitsAPI method no longer works and currently returns "400 - Bad Request". I used the same request previously in a python script, which used to work as expected. I can verify that my last successful call to that API method was on November 11th 2023, but I can't pinpoint what version I was using back then, although I do update fairly regularly. I have not changed the way I call that method since.I have tried out using other API methods, like
/torrents/addTags, using the same torrent hash and session cookie, and that still succeeds as expected.Steps to reproduce
Additional context
cURL Snippet generated by Postman:
<< removed irrelevant logs and preferences >>