/api/series timeout for specific tv show

Sonarr version (exact version): 2.0.0.5252
Mono version (if Sonarr is not running on Windows): Running in Windows
OS: Windows 10 v10.0.17769 Build 17763

Description of issue:
I was able to add several TV shows, but it fails only when trying to add the show Shark Tank (tvdbId: 100981).
When pressing either Add or Add and search, it makes the POST request to /api/series, and after 5 minutes it times out with a 500 error.

Here’s the POST Header and body: https://pastebin.com/hTeDW8uY
Here’s the POST Response: https://pastebin.com/Fw7NiD2x

Log and POST Response have the same message.

I don’t understand why it works with any TV shows except this one. I’m right now running Sonar with 4 other shows. Any clues?

Are you able to load http://skyhook.sonarr.tv/v1/tvdb/shows/en/100981 in Internet Explorer and Edge?

We’ve seen this a few times before and it seems like Cloudflare is not responding when it’s previously ran into a problem getting that information from our server, but it only seems to affect individual proxies of theirs, not all of them and I have no issues with that particular URL.

We should be able to wipe the cache and resolve it, but It’d be good to know what you get back in those browsers.

That URL works perfectly in every browser: IE, Edge and Chrome. I’m able to get the json with no issues. .NET web request should be able to get it to. It’s the same host.

I’d like to add that further testing showed that I have the same exact issue with Brooklyn Nine-Nine (tvdbId: 269586). I’m able to download the json with all browsers too. It just times out with the sonarr request.

Agreed, it should be able to, not sure why it fails, but this is what we’ve seen in other cases.

I purged the cache for those two series, please try again in a few minutes and let me know the outcome.

Unfortunately, it didn’t work. I tried again with both shows, and I got the same thing: Error 500, with a timeout message in it.

Is there a way that I can replicate this WebRequest in Powershell or a snippet in C#? I do have Visual Studio installed.

The 500 is because it timed out, the log files will have that timeout as well.

You could try, the stack trace will show exactly where in Sonarr things are happening, but here is where the response is read: https://github.com/Sonarr/Sonarr/blob/develop/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs

Right. I’ll need to take a look at the whole code so I can see how the URL is being created. Stack trace is pointing to that methos GetResponse, but I have no idea which URL is using.

That’s gonna take forever.

Not sure what to do next.

The URL is the one I sent, debug logs will also show it.

Well, I was about to start messing with the code, but i tried one other thing.

I connected with a free vpn, and it just worked. I guess I’ll keep that at hand just in case some other show gets stuck like these two.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.