MattDGTL / sonarr-radarr-queue-cleaner

A simple script using Sonarr and Radarr API
69 stars 26 forks source link

Some sort of error #16

Open vegiemane opened 10 months ago

vegiemane commented 10 months ago

Works fine. But it is outputting a weird error to the logs of the docker container:

2024-01-16 05:31:12,627 [INFO]: Running media-tools script 2024-01-16 05:31:12,627 [INFO]: Checking Sonarr queue... 2024-01-16 05:31:12,636 [INFO]: Processing Sonarr queue... 2024-01-16 05:31:12,636 [INFO]: Checking the status of Greys.Anatomy.S14E24.All.of.Me.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb[eztv] 2024-01-16 05:31:12,637 [INFO]: Removing stalled Sonarr download: Greys.Anatomy.S14E24.All.of.Me.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb[eztv] 2024-01-16 05:31:12,658 [ERROR]: Error making API request to http://sonarr:8989/api/v3/queue/1249371407: Expecting value: line 1 column 1 (char 0) 2024-01-16 05:31:12,659 [INFO]: Checking radarr queue... 2024-01-16 05:31:12,683 [INFO]: Processing Radarr queue... 2024-01-16 05:31:12,683 [INFO]: Finished running media-tools script. Sleeping for 10 minutes.

sivert-io commented 9 months ago

I am experiencing the same error

sivert-io commented 9 months ago

From what I can tell, the tool is working. It is throwing an exception because the response cannot be parsed by JSON. Simply removing .json() from the return response.json() seems to remove the exception.

sivert-io commented 9 months ago

I decided to fork this repository and make my own version. You can grab it from here: https://github.com/SivertGullbergHansen/arr-cleaner.git

Instructions are in the readme (almost identical to this repository)