-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonarr - AutoApprove fails for "New Series" only - Bad Request - 0 is not a valid ID #2466
Comments
Have you made your your settings are correct? |
Nevermind. Appears the user has to log-out and then log back in for permission updates to affect. I But I am still getting same error in the manual approval process for shows that aren't already "added" to Sonarr.
|
Yeah settings are correct, basepath works, requests work for shows that already exist in sonarr but not for "new" ones. I triple-checked the basepath earlier due to other threads I've read. If I change the basepath from what I have now I get 404s so that isn't it. The connection settings page for Sonarr is able to pull the Quality Profiles and the Root Folders just fine. Any other settings you think I can check? I don't see any way to turn on debug logging or to add a proxy to Ombi so I can inspect the request/responses. I might be able to manually feed it through a reverse proxy I have setup and capture the logs there. |
Everything with Radarr and Plex integrations running smooth. Appears I am on the latest Sonarr version. |
Was able to throw a proxy in-between and at least capture the request body. I think I recall seeing in another thread that there is issues when the images element is empty? I see this request fail twice before the 3rd one fails too. This would explain why this is working for series that are already "added" since the adds are failing. I am guessing the ID is
|
That's very strange since the What version of sonarr are you running? |
Just checked and I am on the latest. v 2.0.0.5228 (released June 24th) The invalid ID only happens on the 3rd request. I am guessing you have the internal Sonarr ID by that point since its is an URL parameter. The first/second request is what I posted above. Which I believe is the one to add the series to Sonarr, so makes sense there should be no ID. Haven't looked at source but looks like Ombi retries the "add" request when the first fails. So Sonarr doesn't like something in that JSON on the first request. I put on "trace" logs in Sonarr but doesn't give me any more information then that.
|
When you say on the 3rd request, what do you mean? |
I see a series of requests all failing. Two of them are identical and then there is a 3rd one with a Anyhow I think I figured out why the request is failing but not sure why the value is not being sent. Looks like for whatever reason the
|
Scratch that looks like one of the Going to look at the source and see if I can add some validation to that page. Also would be a lot more helpful if there was more information in the logs, either by being able to change a log setting in the UI or a startup param or maybe just more logging in general. |
You can close this. Appreciate the follow up and thank you for the help. If I am able to get something accomplished I'll submit a pull request. |
@hummerpj how did you resolve this. All my root paths appear set. I am getting API Error: BadRequest :0 is not a valid ID when approving shows. |
I also keep getting this error. I restore my sonarr from backup and it fixes it for about 2-3 days and then it breaks again. What I dont understand is how an error with sonarr can take down ombi and prevent the user from logging in. This should not be possible. |
I am trying to remember any other details but its escaping me a bit. It was mainly the rootFolderPath being messed up. I had multiple set in Sonarr and it was set up wrong in Ombi. There might be other things that causes this but that was my issue. I would double and triple check your setting pages in Ombi for Radarr and/or Sonarr (depending on which you are using) to make sure everything is set correctly. There is no validation on that page to tell you what is required and what is not (last I checked). Lastly, you can try checking the logs in Sonarr to help you out or put a proxy between and capture requests. Sonarr lets you change the log level to capture more data too. What appears to happen is that a couple different requests are fired in succession when this action takes place. The first is to grab some show/season/episode data from Sonarr. Even though that didn't find anything it still tries to make another request which results in passing |
Ombi build Version:
v 3.0.3587
Update Branch:
master
Media Sever:
Plex
Media Server Version:
v 1.13.5.5291
Operating System:
Windows 10
Ombi Applicable Logs (from
/logs/
directory or the Admin page):Sonarr Logs:
Problem Description:
Been trying to debug an issue I was having with a new install. Finally was able to reproduce exact steps. When requesting episodes for a series that has already been "added" to Sonarr there is no problem and everything seems to work as expected.
However, if I try to request a new series that has not been previously added I get failed requests into Sonarr.
One use-case that I haven't been able to test yet is a user without "Auto Approve" role. So I am not sure if this applies to that work flow too. I will add to this thread if I am able to verify that.
Reproduction Steps:
Working when series already "added" to Sonarr
Search for show already in Sonarr but missing seasons
Add request for season in Ombi
Success in Sonarr for added season, starts downloading.
Fails when series not "added" to Sonarr (new series)
Search for show not "added" to Sonarr
Request any season or episode
Three failed requests in a row, first two "invalid path", third "0 is not a valid ID"
The text was updated successfully, but these errors were encountered: