Here's the image of the insomnia request, which works:
And here's my javascript code, which doesn't:
Code: Select all
const data = new FormData();
data.append(
'urls',
'https://yts.mx/torrent/download/0CE7772B55BEF2DA98C49AA1DF608DEBBB20670F'
);
data.append('savepath', 'G:/My Drive/downloads/');
data.append('category', 'Movies');
await axios.post(`http://127.0.0.1:5050/api/v2/torrents/add`, data, {
headers: data.getHeaders()
});