Sonarr version (exact version): 2.0.0.5301 Mono version (if Sonarr is not running on Windows): 5.8.0.127 OS: Debian Debug logs: Not Applicable (hence the issue I think) Description of issue: I am trying to set up autodl-curl-sonarr. When I manually run the script I get no errors now (initially has bash command not found error) however nothing happens in Sonarr.
There are no logs on debug or any other level either, hence I am assuming the script is not hitting Sonarr at all.
This leaves me with only one assumption that api/release/push is not getting hit. When I access localhost or 127.0.0.1/api/release/push?apikey=âkeyâ I get a not found error. Same thing happens when I try /sonarr/api/release/push. My URL base in Sonarr is /sonarr.
Can anyone please suggest what can be done or any other ideas that I havent thought of?
My autodl is grabbing and sending the releases to Sonarr. The script has all the parameters however it wasnât returning any data. Hence I âassumedâ the issue was api/release (I am wrong looks like). However not sure why its still not hitting Sonarr in order for me to troubleshoot.
you just have to make sure that http://localhost:8989 is correct, ie the script is running on the same host as sonarr and youre using the default port as well
from where ever the script is running can you run this /usr/bin/curl -i -H "Accept: application/json" -H "Content-Type: application/json" -H "X-Api-Key: your_api_key_goes_here" -X POST -d '{}' http://localhost:8989/api/downloadclient
that should return something other than NotFound (a list of your download clients). if it doesnt then you need to tweak the hostname and port parts of the URL on the end until it does work, then update the script with the hostname and port that you get working
In order to redirect I would need to remove URL base right? When I tried to remove it I could no longer login to Sonarr and has to edit config file to add urlbase to log back in. If it helps here is my Sonarr setting: https://unsee.cc/247eb4a1/
Sonarr is installed on a dedi seedbox (mentioning this in case it is relevant).
Your time in helping troubleshoot is much appreciated.
ok, so we know that localhost:8989/sonarr/api works so you should be able to edit the script and just add in the /sonarr/ part into the URL on the end and it should work
This is exactly what I had run earlier (localhost and 127âŚ). I am going to restart the service just to be safe and will report back.
Edit:
Dang it. What do you know, this is the exact same thing I had started with seems to be working now.
The only thing that I did was reinstall Sonarr.
Happy to report that it works 99% of the time. The only error noticed a few times- âNzbDroneErrorPipeline - Request Failed. POST /api/release/push: Sequence contains no elementsâ.