api/v2/torrents/add always returns only "Fails". #10241

Open
opened 2026-02-21 20:39:00 -05:00 by deekerman · 0 comments
Owner

Originally created by @faulander on GitHub (Apr 23, 2020).

Please provide the following information

qBittorrent version and Operating System

qBittorrent v4.2.3 Web UI

What is the problem

I am currently implementing a wrapper for the API for the NIM programming language. All get methods work as expected. I have a problem with the add torrents method though:
Whatever i try to call the api with my own program or even with Postman to add a magnet-link to the api, i get "Fails" as only response.

If i check the documentation, it is inconsequent. In the example post only the usual headers are provided and in the body the urls field with the links.
In the description it tells me, that a torrents file is needed. But i don't have a torrents file if i download a magnet link?!?

What is the expected behavior

It should tell me, why it fails or at least give me a clue.

Extra info(if any)

My Github page: https://github.com/faulander/nimQBittorrent

Originally created by @faulander on GitHub (Apr 23, 2020). **Please provide the following information** ### qBittorrent version and Operating System qBittorrent v4.2.3 Web UI ### What is the problem I am currently implementing a wrapper for the API for the NIM programming language. All get methods work as expected. I have a problem with the add torrents method though: Whatever i try to call the api with my own program or even with Postman to add a magnet-link to the api, i get "Fails" as only response. If i check the documentation, it is inconsequent. In the example post only the usual headers are provided and in the body the urls field with the links. In the description it tells me, that a torrents file is needed. But i don't have a torrents file if i download a magnet link?!? ### What is the expected behavior It should tell me, why it fails or at least give me a clue. ### Extra info(if any) My Github page: https://github.com/faulander/nimQBittorrent
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#10241
No description provided.