mdhiggins / sickbeard_mp4_automator

Automatically convert video files to a standardized format with metadata tagging to create a beautiful and uniform media library
MIT License
1.51k stars 201 forks source link

Radarr suddenly not working #1447

Closed morpheus2n2 closed 3 years ago

morpheus2n2 commented 3 years ago

Not sure if Radarr changed something but the last 2 weeks this is all I get from SMA when it calls on Radarr to do its job lol.

2021-06-05 16:18:59 - autoprocess.radarr - ERROR - Update to Radarr failed, check if Radarr is running, autoProcess.ini settings and make sure your Radarr settings are correct (apikey?), or check install of python modules requests. Traceback (most recent call last): File "A:\PlexBackend\Converter\autoprocess\radarr.py", line 71, in processMovie log.info("%sRadarr response: %s." % (infoprefix, rstate['state'])) KeyError: 'state'

I have verified the Address and API key and have also changed the API just to see but this sis all I ever get, I can't see anthing in the Radarr logs to say its received a command from SMA

mdhiggins commented 3 years ago

Can you access your API using any manual commands? What version of Radarr? They wouldn't just modify the API to the point where they break all connections so unless you're running nightly build and there's a problem that's breaking the API I would say its something on your own setup

mdhiggins commented 3 years ago

https://radarr.video/docs/api/

You should be able to plug in your server settings on the radarr api website and test commands

morpheus2n2 commented 3 years ago

Not via the script no, but other apps that use the api like Petio etc all communicate and connect just fine, I even copied the API key and ip from the autoconfig to see if may be i was getting it down work and it worked fine.

V4. Thats what I though cos SMA is the only thing that spits out a error yet all the settings are correct and have been tested on other apps for clarification its very odd lol

mdhiggins commented 3 years ago

Wasn't aware V4 even launched, that might be the issue, looks like its only a few days old. Does reverting to V3 fix things?

mdhiggins commented 3 years ago

You might need to post some sample API returns for V4 as it looks like its not documented yet

morpheus2n2 commented 3 years ago

umm good point, I will try and downgrade and let you know

morpheus2n2 commented 3 years ago

Ok have just spotted this. 4.0.0.5077 — 31 May 2021 nightly Previously Installed New - Remove Legacy API

mdhiggins commented 3 years ago

94d081404748fe7c7ab7fb8dd5eac370b3cba921

Try that update and see if it helps

Looks like API v3 is still the latest and while postSonarr/postRadarr have been using v3 API the autoprocess/sonarr.py and autoprocess/radarr.py were still reference the old API for that one command

morpheus2n2 commented 3 years ago

Ok will test have just asked on discord and the response was Same as V3 Musta been using a legacy endpoint if that means anything to you :D

mdhiggins commented 3 years ago

Yeah the update I just posted changes to V3 and removes that one last legacy endpoint

morpheus2n2 commented 3 years ago

ahh ok cool

morpheus2n2 commented 3 years ago

Yep all fixed thank you :D