amc is getting http 522 from thetvdb

Any questions? Need some help?
Post Reply
harleypig
Posts: 2
Joined: 08 Aug 2016, 16:50

amc is getting http 522 from thetvdb

Post by harleypig »

Sysinfo is at bottom of post.

When running amc for an episode, fetch is failing because thetvdb is returning http error code 522 (or sometimes 520). But when I load the link in a browser window on the same machine I get the expected data.

I remove the file to be renamed from the exclude file, clear the cache and then run the amc script. This seems to be happening for all tv shows, but it's only been today as far as I can tell.

Code: Select all

filebot -clear-cache ; ../bin/amc The_Cul_de_Sac_S01E05.mp4
The log file contains the following:

Code: Select all

Run script [fn:amc] at [Thu Sep 15 00:50:15 MDT 2016]
Parameter: excludeList = /home/harleypig/videos/data/amc_exclude_file.list
Parameter: clean = y
Parameter: movieFormat = movies/{self.collection ? concat('series/', collection.space('_')) : concat( 'alpha/', n.sortName() =~ /^(?i)[a-z]/ ? n.sortName()[0].upperInitial() : '_')}/{n.ascii().upperInitial().space('_').replaceAll("'",'')}_{y}{'_CD'+pi}
Parameter: plex = localhost:plexkeygoeshere
Parameter: seriesFormat = tv/{n.replaceTrailingBrackets().replaceAll("'").space('_')}/{n.replaceTrailingBrackets().replaceAll("'").space('_')}_S{s.pad(2)}/{n.replaceTrailingBrackets().replaceAll("'").space('_')}_{s00e00}_{airdate.format('yyyyMMdd')}_{t.upperInitial().space('_')}
Parameter: skipExtract = y
Parameter: storeReport = y
Parameter: unsorted = y
Parameter: unsortedFormat = /home/harleypig/videos/unsorted/{file.structurePathTail}
Argument: /home/harleypig/videos/unsorted/The_Cul_de_Sac_S01E05.mp4
Using excludes: /home/harleypig/videos/data/amc_exclude_file.list (0)
Input: /home/harleypig/videos/unsorted/The_Cul_de_Sac_S01E05.mp4
Group: [tvs:the cul de sac] => [The_Cul_de_Sac_S01E05.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [the cul de sac]
Fetch failed: java.io.IOException: Server returned HTTP response code: 522 for URL: http://thetvdb.com/api/GetSeries.php?seriesname=the+cul+de+sac&language=en [http://thetvdb.com/api/GetSeries.php?seriesname=the+cul+de+sac&language=en]
java.io.IOException: Server returned HTTP response code: 522 for URL: http://thetvdb.com/api/GetSeries.php?seriesname=the+cul+de+sac&language=en
Processing 1 unsorted files
Skipped [/home/harleypig/videos/unsorted/The_Cul_de_Sac_S01E05.mp4] because [/home/harleypig/videos/unsorted/The_Cul_de_Sac_S01E05.mp4] already exists
Processed 0 files
Clean clutter files and empty folders
Finished without processing any files
Failure (°_°)

Code: Select all

$ filebot -script fn:sysinfo
FileBot 4.7.2 (r4252)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (/usr/share/filebot/fpcalc)
Extended Attributes: OK
GVFS: OK
Groovy Engine: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_101
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 13 GB Max Memory / 1 GB Used Memory
OS: Linux (amd64)
Package: DEB
Data: /home/harleypig/.filebot
uname: Linux sweetums 3.19.3-031903-lowlatency #201503261036 SMP PREEMPT Thu Mar 26 14:46:22 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: amc is getting http 522 from thetvdb

Post by rednoah »

TheTVDB wrote:Network Error (tcp_error)

A communication error occurred: ""
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

For assistance, contact your network support team.
5xx error codes indicate some kind of server issue. Network issues (other than the server being down completely) are very much sporadic in nature. Sometimes it'll work, sometimes it doesn't. Nothing we can do about that. Just wait a day or two and try again. If it keeps happening please report the issue in TheTVDB forums.
:idea: Please read the FAQ and How to Request Help.
garyleecn
Donor
Posts: 114
Joined: 19 Nov 2014, 03:48

Re: amc is getting http 522 from thetvdb

Post by garyleecn »

looks like a server side issue. same here the whole night.
also tried movie/tv mix, movies works fine while none of the tv files were processed. further prove it's server side problem, nothing wrong with the script.
harleypig
Posts: 2
Joined: 08 Aug 2016, 16:50

Re: amc is getting http 522 from thetvdb

Post by harleypig »

Thank you, this confirms my thinking.

Just for clarification, the only reason I posted this here was because every single time I ran the script it failed, but when I tried manually loading the offending url in my browser, it worked. I just wanted to make sure there wasn't something obvious I was missing.
Post Reply