Search found 5 matches

by OldRustyKnight
January 11th, 2023, 10:33 pm
Forum: Bug Reports
Topic: API upload file (via direct POST/multi part form) returns invalid JSON on version 3.7.1
Replies: 4
Views: 2563

Re: API upload file (via direct POST/multi part form) returns invalid JSON on version 3.7.1

I think I'd be happy to say that this is mostly a case of "idiot on the outside" with a side of "luck"

I've corrected my form data to include "output=json" correctly and it now seems to be working fine

Thanks
by OldRustyKnight
January 11th, 2023, 10:19 pm
Forum: Bug Reports
Topic: API upload file (via direct POST/multi part form) returns invalid JSON on version 3.7.1
Replies: 4
Views: 2563

Re: API upload file (via direct POST/multi part form) returns invalid JSON on version 3.7.1

You need to add mode=json to your request, right you are using text mode. It already is POST http://.../api?output=json I updated from 2.3.9 where the API request was working to 3.7.1 which broke my unit tests Also, shouldn't it be "output" not "mode", as "mode" would ...
by OldRustyKnight
January 10th, 2023, 8:09 pm
Forum: Bug Reports
Topic: API upload file (via direct POST/multi part form) returns invalid JSON on version 3.7.1
Replies: 4
Views: 2563

API upload file (via direct POST/multi part form) returns invalid JSON on version 3.7.1

When posting a file through the API (using multi part form), the JSON been returned is invalid (the upload works just fine) The docs (wiki/configuration/3.7/api#addur) state it should return { "status": true, "nzo_ids": ["SABnzbd_nzo_kyt1f0"] } But it's returning {'stat...
by OldRustyKnight
September 5th, 2020, 5:58 am
Forum: General Discussion
Topic: Can no longer access APIs due to "error: API Key Required" 3.0.1/3.0.2/3.1.0
Replies: 3
Views: 3720

Re: Can no longer access APIs due to "error: API Key Required" 3.0.1/3.0.2/3.1.0

Hadn't thought of that - I did roll back to 2.3.9, removed all the config and a couple of reboots later got it working.

The first time I noticed the issues was through use of some Swift code I wrote to automate some of my workflow
by OldRustyKnight
September 4th, 2020, 9:48 pm
Forum: General Discussion
Topic: Can no longer access APIs due to "error: API Key Required" 3.0.1/3.0.2/3.1.0
Replies: 3
Views: 3720

Can no longer access APIs due to "error: API Key Required" 3.0.1/3.0.2/3.1.0

macOS High Sierra, 10.13.6 I've started having issues accessing the APIs after upgrading to 3.0.2. I've also tried download grading to 3.0.1 and upgrading to 3.1.0 and still have the same issues. Each new install involves shutting down the sever, installing it and rebooting the machine before testin...