ManiMatter / decluttarr

Watches radarr, sonarr, lidarr, readarr and whisparr download queues and removes downloads if they become stalled or no longer needed.
GNU General Public License v3.0
100 stars 15 forks source link

Queue cleaning failed on Sonarr #11

Closed vladstart1 closed 7 months ago

vladstart1 commented 7 months ago

I set up decluttarr with docker-compose.yml provided in examples of this repo but it seems that it can't get sonar queue for unknown reason.

Here are the errors:

2023/11/09 19:28:37 | stderr | [WARNING]: >>> Queue cleaning failed on Sonarr. (File: queue_cleaner.py / Line: 216 / Error Message: 'NoneType' object is not iterable / Error Type: <class 'TypeError'>)
2023/11/09 19:28:37 | stderr | [ERROR]: Error making API request to http://192.168.1.183:9865/api/v2/torrents/info: 403 Client Error: Forbidden for url: http://192.168.1.183:9865/api/v2/torrents/info?tag=Don%27t+Kill+If+Stalled
2023/11/09 18:28:35 | stderr | [WARNING]: >>> Queue cleaning failed on Sonarr. (File: queue_cleaner.py / Line: 216 / Error Message: 'NoneType' object is not iterable / Error Type: <class 'TypeError'>)
2023/11/09 18:28:35 | stderr | [ERROR]: Error making API request to http://192.168.1.183:9865/api/v2/torrents/info: 403 Client Error: Forbidden for url: http://192.168.1.183:9865/api/v2/torrents/info?tag=Don%27t+Kill+If+Stalled
2023/11/09 17:28:35 | stderr | [WARNING]: >>> Queue cleaning failed on Sonarr. (File: queue_cleaner.py / Line: 216 / Error Message: 'NoneType' object is not iterable / Error Type: <class 'TypeError'>)
2023/11/09 17:28:35 | stderr | [ERROR]: Error making API request to http://192.168.1.183:9865/api/v2/torrents/info: 403 Client Error: Forbidden for url: http://192.168.1.183:9865/api/v2/torrents/info?tag=Don%27t+Kill+If+Stalled
2023/11/09 16:28:33 | stderr | [WARNING]: >>> Queue cleaning failed on Sonarr. (File: queue_cleaner.py / Line: 216 / Error Message: 'NoneType' object is not iterable / Error Type: <class 'TypeError'>)
2023/11/09 16:28:33 | stderr | [ERROR]: Error making API request to http://192.168.1.183:9865/api/v2/torrents/info: 403 Client Error: Forbidden for url: http://192.168.1.183:9865/api/v2/torrents/info?tag=Don%27t+Kill+If+Stalled
2023/11/09 15:28:31 | stderr | [WARNING]: >>> Queue cleaning failed on Sonarr. (File: queue_cleaner.py / Line: 216 / Error Message: 'NoneType' object is not iterable / Error Type: <class 'TypeError'>)

Please let me know if you need more info or maybe you will suggest a way how I can debug it further

ManiMatter commented 7 months ago

Looks to me like a permission error on qbit.

are username+pw correct?

sometimes qbit blocks api calls after trying too many times with wrong credentials. Have you tried restarting qbit?

vladstart1 commented 7 months ago

Thank you for your response!

You were right issue was on qbit side, after adding ip subnet to white list everything works as expected

ManiMatter commented 7 months ago

Cheers glad it worked!