ValentinGot / real-debrid

A simple API interface for real-debrid.com.
MIT License
18 stars 14 forks source link

Add Torrent error - invalid file #6

Closed roly151 closed 5 months ago

roly151 commented 5 months ago

Hi,

I am using your postman collection to add a torrent file to RD. But I always get error 30 - invalid torrent file in return.

I have tried most of the other endpoints and all of them work.

I changed the addTorrent to a PUT call rather than a POST that you have it as. (Tried both).

I know the torrent file is valid as I can upload it to the RD website manually without problem and I can select files.

I have added authorisation, the host and split Params (from using availableHosts), and I have added the .torrent file to the body with the key 'file' and set it to file and selected my .torrent file.

Is there anything else I am missing?

roly151 commented 5 months ago

I figured it out. I was adding the file as form data, but should have been adding it as a binary.