l3uddz / traktarr

Script to add new series & movies to Sonarr/Radarr based on Trakt lists.
GNU General Public License v3.0
573 stars 52 forks source link

Can't connect to Radarr: Failed to retrieve all quality profiles, request response: 404 #173

Open reebevoli opened 1 year ago

reebevoli commented 1 year ago

Describe the bug When traktarr is run a 404 error is return that it can't connect to Radarr. I've read that this is potentially due to Radarr using v3 of the API?

Logs 2022-11-04 23:23:08,530 - DEBUG - media.pvr - get_quality_profile_id - Request URL: http://127.0.0.1:7878/radarr/api/profile 2022-11-04 23:23:08,531 - DEBUG - media.pvr - get_quality_profile_id - Request Response: 404 2022-11-04 23:23:08,531 - ERROR - media.pvr - get_quality_profile_id - Failed to retrieve all quality profiles, request response: 404 2022-11-04 23:23:08,531 - ERROR - backoff - _log_giveup - Giving up get_quality_profile_id(...) after 4 tries (None) 2022-11-04 23:23:08,531 - ERROR - Traktarr - get_quality_profile_id - Aborting due to failure to retrieve Quality Profile ID for: Ultra-HD

System Information

Blacktrex007 commented 1 year ago

Hello, Thats because you need to change the API call.

Here is the API call you need to change:

config file : /opt/traktarr/media/pvr.py line 75 change api/profile to api/v3/qualityprofile

config file : /opt/traktarr/media/radarr.py line 12 and 41 change Api/movie to Api/v3/movie

config file : /opt/traktarr/media/radarr.py Line 15 change /api/exclusions to /api/v3/exclusions

Then if you have the service installed, you will have to reload the deamon

Blacktrex007 commented 1 year ago

If the lines are not the same you can still use the command below to find the file and line with the specific API call: grep -rnw "PathToTraktarr" -e "api/profile"