Page 1 of 1

TheTVDB not working: [Fatal Error] :1:1: Content is not allowed in prolog

Posted: 25 Jul 2016, 06:59
by cgacord
Having issues running filebot from CLI, not sure if it is related to updating my java version, but that is the only change I made since the last successful use of filebot. Below you can see my java version and the output of filebot.

java -version output:

Code: Select all

java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
Now when I try to run filebot I get the output below.

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [Guardians of the Galaxy, The Last Ship, Ballers 2015, Ray Donovan, Preacher]
Fetching episode data for [Marvel's Guardians of the Galaxy]
[Fatal Error] :1:1: Content is not allowed in prolog.
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
java.util.concurrent.ExecutionException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.fetchSearchResult(WebServices.java:136)
	at net.filebot.web.AbstractEpisodeListProvider.lambda$search$0(AbstractEpisodeListProvider.java:22)
	at net.filebot.Cache.computeIf(Cache.java:85)
	at net.filebot.Cache$TypedCache.computeIf(Cache.java:166)
	at net.filebot.Cache.computeIfAbsent(Cache.java:91)
	at net.filebot.Cache$TypedCache.computeIfAbsent(Cache.java:171)
	at net.filebot.web.AbstractEpisodeListProvider.search(AbstractEpisodeListProvider.java:21)
	at net.filebot.cli.CmdlineOperations.fetchEpisodeSet(CmdlineOperations.java:288)
	at net.filebot.cli.CmdlineOperations.renameSeries(CmdlineOperations.java:207)
	at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:110)
	at net.filebot.cli.ArgumentProcessor.runCommand(ArgumentProcessor.java:90)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:26)
	at net.filebot.Main.main(Main.java:120)
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
	at net.filebot.web.WebRequest.getDocument(WebRequest.java:103)
	at net.filebot.web.WebRequest.getDocument(WebRequest.java:95)
	at net.filebot.CachedResource.lambda$getXml$6(CachedResource.java:163)
	at net.filebot.CachedResource.get(CachedResource.java:107)
	at net.filebot.web.TheTVDBClient.getXmlResource(TheTVDBClient.java:272)
	at net.filebot.web.TheTVDBClient.fetchSearchResult(TheTVDBClient.java:89)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.access$001(WebServices.java:111)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.lambda$fetchSearchResult$3(WebServices.java:132)
Failure (°_°)
Thanks for any help or insights.

Re: Mac OSX CLI Error after Java Update

Posted: 25 Jul 2016, 09:03
by rednoah
That has nothing to do with Java. That's TheTVDB API not working correctly. Try again tomorrow and it'll probably work just fine again.

Re: TheTVDB not working: [Fatal Error] :1:1: Content is not allowed in prolog

Posted: 25 Jul 2016, 12:55
by cgacord
Thanks for the quick reply

Re: TheTVDB not working: [Fatal Error] :1:1: Content is not allowed in prolog

Posted: 26 Jul 2016, 13:48
by cgacord
Still having the same issue, is there something wrong with the TVDB API?

Re: TheTVDB not working: [Fatal Error] :1:1: Content is not allowed in prolog

Posted: 26 Jul 2016, 14:19
by rednoah
You could try doing a -clear-cache and see if that resolves the problem.

Re: TheTVDB not working: [Fatal Error] :1:1: Content is not allowed in prolog

Posted: 28 Jul 2016, 15:12
by thebestnumberis42
Did clearing the cache resolve your issue? I was getting the same error message, but it was only a week or so ago for one episode. Since then everything has been working just fine.

For me, the issue was sickrage kept trying to snatch the same episode day after day, but filebot wouldn't process it since it was added to the exclude list after failing a week ago due to TVDB's API outage. Manually processed the file and we're back in business. No need to clear cache on my end.

These are the times I received the error, and presumably TVDB's API was down:
Sun Jul 24 21:57:16 EDT 2016
Mon Jul 25 10:26:41 EDT 2016

Hopefully this helps others with a similar issue.