TheTVDB - Failed to retrieve authorization token: connect timed out

Support for Ubuntu and other Desktop Linux distributions
Post Reply
rouds42
Posts: 4
Joined: 21 Dec 2019, 07:55

TheTVDB - Failed to retrieve authorization token: connect timed out

Post by rouds42 »

Hello,

My filebot script doesn't anymore since few weeks. It seems to fail to connect to TheTVDB server

Command :

Code: Select all

filebot -script fn:amc --log all -rename $DOWNLOAD_DIR --output $PARSED_DIR --log-f
ile $LOG_FILE --action move --conflict override -non-strict --def music=y --def ple
x=127.0.0.1:xxxxxx --def "seriesFormat=$TVSHOWS_DIR/{n}/Season {s}/{n
} - [{sxe}] - {t} [{vf}-{source}-{vc}-{group}]" "movieFormat=$MOVIES_DIR/{n} ({y})/
{n} ({y})" "ut_kind=multi" "subtitles=fr,en" --def subtitles=fr,en

Error message :

Code: Select all

java.lang.IllegalStateException: Failed to retrieve authorization token: connect timed out
        at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:1
31)
        at net.filebot.web.TheTVDBClient.getRequestHeader(TheTVDBClient.java:96)
        at net.filebot.web.TheTVDBClient.lambda$requestJson$0(TheTVDBClient.java:81
)
        at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:
215)
        at net.filebot.CachedResource.lambda$get$0(CachedResource.java:87)
        at net.filebot.CachedResource.retry(CachedResource.java:121)
        at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
        at net.filebot.Cache.computeIf(Cache.java:90)
        at net.filebot.CachedResource.get(CachedResource.java:82)
        at net.filebot.web.TheTVDBClient.requestJson(TheTVDBClient.java:81)
        at net.filebot.web.TheTVDBClient.search(TheTVDBClient.java:139)
        at net.filebot.web.TheTVDBClient.fetchSearchResult(TheTVDBClient.java:158)
        at net.filebot.WebServices$TheTVDBClientWithLocalSearch.access$101(WebServi
ces.java:193)
        at net.filebot.WebServices$TheTVDBClientWithLocalSearch.lambda$fetchSearchR
esult$4(WebServices.java:213)
Caused by: java.net.SocketTimeoutException: connect timed out
        at net.filebot.web.WebRequest.post(WebRequest.java:198)
        at net.filebot.web.TheTVDBClient.postJson(TheTVDBClient.java:75)
        at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:1
27)
        ... 13 more
Did Anyone ever have this message ?

Thanks For your assistance.

My best wishes for 2020.
User avatar
rednoah
The Source
Posts: 18826
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TheTVDB - Failed to retrieve authorization token: connect timed out

Post by rednoah »

Looks like a network or server issue:

Code: Select all

connect timed out
Probably temporary. Give it a day, and try again tomorrow, and then things should just work again.
:idea: Please read the FAQ and How to Request Help.
rouds42
Posts: 4
Joined: 21 Dec 2019, 07:55

Re: TheTVDB - Failed to retrieve authorization token: connect timed out

Post by rouds42 »

Hi,

Unfortunately, it is not working for the pastis few weeks/months...
User avatar
rednoah
The Source
Posts: 18826
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TheTVDB - Failed to retrieve authorization token: connect timed out

Post by rednoah »

That would indicate a general network issue on your end.


TheTVDB fundamentally works for me right now:

Code: Select all

filebot -list --db TheTVDB --q firefly
Firefly - 1x01 - Serenity
Firefly - 1x02 - The Train Job
...
:idea: Please read the FAQ and How to Request Help.
sshobo
Posts: 1
Joined: 10 Jan 2020, 21:13

Re: TheTVDB - Failed to retrieve authorization token: connect timed out

Post by sshobo »

I'm having the exact same issue.
Running

Code: Select all

filebot -list --db TheTVDB --q firefly
gives me the following stack

Code: Select all

Fetch failed: https://api.thetvdb.com/search/series?name=firefly
java.lang.IllegalStateException: Failed to retrieve authorization token: Read timed out
        at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:131)
        at net.filebot.web.TheTVDBClient.getRequestHeader(TheTVDBClient.java:96)
        at net.filebot.web.TheTVDBClient.lambda$requestJson$0(TheTVDBClient.java:81)
        at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:215)
        at net.filebot.CachedResource.lambda$get$0(CachedResource.java:87)
        at net.filebot.CachedResource.retry(CachedResource.java:121)
        at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
        at net.filebot.Cache.computeIf(Cache.java:90)
        at net.filebot.CachedResource.get(CachedResource.java:82)
        at net.filebot.web.TheTVDBClient.requestJson(TheTVDBClient.java:81)
        at net.filebot.web.TheTVDBClient.search(TheTVDBClient.java:139)
        at net.filebot.web.TheTVDBClient.fetchSearchResult(TheTVDBClient.java:158)
        at net.filebot.WebServices$TheTVDBClientWithLocalSearch.access$101(WebServices.java:193)
        at net.filebot.WebServices$TheTVDBClientWithLocalSearch.lambda$fetchSearchResult$4(WebServices.java:213)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at net.filebot.web.WebRequest.post(WebRequest.java:206)
        at net.filebot.web.TheTVDBClient.postJson(TheTVDBClient.java:75)
        at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:127)
        ... 13 more
Caused by: java.net.SocketTimeoutException: Read timed out
        at net.filebot.web.WebRequest.post(WebRequest.java:203)
        ... 15 more

java.lang.IllegalStateException: Failed to retrieve authorization token: Read timed out
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Failed to retrieve authorization token: Read timed out
        at net.filebot.WebServices$TheTVDBClientWithLocalSearch.fetchSearchResult(WebServices.java:217)
        at net.filebot.web.AbstractEpisodeListProvider.lambda$search$0(AbstractEpisodeListProvider.java:22)
        at net.filebot.Cache.computeIf(Cache.java:90)
        at net.filebot.Cache$TypedCache.computeIf(Cache.java:183)
        at net.filebot.Cache.computeIfAbsent(Cache.java:96)
        at net.filebot.Cache$TypedCache.computeIfAbsent(Cache.java:188)
        at net.filebot.web.AbstractEpisodeListProvider.search(AbstractEpisodeListProvider.java:21)
        at net.filebot.cli.CmdlineOperations.fetchEpisodeList(CmdlineOperations.java:1047)
        at net.filebot.cli.CmdlineOperations.fetchEpisodeList(CmdlineOperations.java:1071)
        at net.filebot.cli.ArgumentProcessor.runCommand(ArgumentProcessor.java:91)
        at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:33)
        at net.filebot.Main.main(Main.java:132)
Caused by: java.lang.IllegalStateException: Failed to retrieve authorization token: Read timed out
        at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:131)
        at net.filebot.web.TheTVDBClient.getRequestHeader(TheTVDBClient.java:96)
        at net.filebot.web.TheTVDBClient.lambda$requestJson$0(TheTVDBClient.java:81)
        at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:215)
        at net.filebot.CachedResource.lambda$get$0(CachedResource.java:87)
        at net.filebot.CachedResource.retry(CachedResource.java:121)
        at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
        at net.filebot.Cache.computeIf(Cache.java:90)
        at net.filebot.CachedResource.get(CachedResource.java:82)
        at net.filebot.web.TheTVDBClient.requestJson(TheTVDBClient.java:81)
        at net.filebot.web.TheTVDBClient.search(TheTVDBClient.java:139)
        at net.filebot.web.TheTVDBClient.fetchSearchResult(TheTVDBClient.java:158)
        at net.filebot.WebServices$TheTVDBClientWithLocalSearch.access$101(WebServices.java:193)
        at net.filebot.WebServices$TheTVDBClientWithLocalSearch.lambda$fetchSearchResult$4(WebServices.java:213)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at net.filebot.web.WebRequest.post(WebRequest.java:206)
        at net.filebot.web.TheTVDBClient.postJson(TheTVDBClient.java:75)
        at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:127)
        ... 13 more
Caused by: java.net.SocketTimeoutException: Read timed out
        at net.filebot.web.WebRequest.post(WebRequest.java:203)
        ... 15 more
User avatar
rednoah
The Source
Posts: 18826
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TheTVDB - Failed to retrieve authorization token: connect timed out

Post by rednoah »

TheTVDB is down. Please try again tomorrow.

Code: Select all

Caused by: java.net.SocketTimeoutException: Read timed out
:idea: Please read the FAQ and How to Request Help.
rouds42
Posts: 4
Joined: 21 Dec 2019, 07:55

Re: TheTVDB - Failed to retrieve authorization token: connect timed out

Post by rouds42 »

Hi everyone,

From my end, I still have the same issue despite uninstall-reinstall the app.

Does Anyone has a solution (It is quite disapointing to pay for a license without any support...) ? What port is used by the filebot command line ? How to test network issue specifically for filebot access request ?

It is working through the application interface...

Thanks everyone for any further assistance.
User avatar
rednoah
The Source
Posts: 18826
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TheTVDB - Failed to retrieve authorization token: connect timed out

Post by rednoah »

This would be a server-side issue with TheTVDB services.

You can either wait for their servers to work again, or you can use a different database instead for the time being.
:idea: Please read the FAQ and How to Request Help.
rouds42
Posts: 4
Joined: 21 Dec 2019, 07:55

Re: TheTVDB - Failed to retrieve authorization token: connect timed out

Post by rouds42 »

Hi rednoah,

thanks again for your assistance. One thing I don't understand is how is it possible to be a server side issue if I'm the only one who cannot access it ? How can I use a different database to test if it only not working with TheTVDB ?

I've tested again and I still got the same error message :

Code: Select all

Fetch failed: https://api.thetvdb.com/search/series?name=xxx
java.lang.IllegalStateException: Failed to retrieve authorization token: connect timed out
	at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:131)
	at net.filebot.web.TheTVDBClient.getRequestHeader(TheTVDBClient.java:96)
	at net.filebot.web.TheTVDBClient.lambda$requestJson$0(TheTVDBClient.java:81)
	at net.filebot.CachedResource.lambda$fetchIfModified$9(CachedResource.java:215)
	at net.filebot.CachedResource.lambda$get$0(CachedResource.java:87)
	at net.filebot.CachedResource.retry(CachedResource.java:121)
	at net.filebot.CachedResource.lambda$get$1(CachedResource.java:87)
	at net.filebot.Cache.computeIf(Cache.java:90)
	at net.filebot.CachedResource.get(CachedResource.java:82)
	at net.filebot.web.TheTVDBClient.requestJson(TheTVDBClient.java:81)
	at net.filebot.web.TheTVDBClient.search(TheTVDBClient.java:139)
	at net.filebot.web.TheTVDBClient.fetchSearchResult(TheTVDBClient.java:158)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.access$101(WebServices.java:193)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch.lambda$fetchSearchResult$4(WebServices.java:213)
Caused by: java.net.SocketTimeoutException: connect timed out
	at net.filebot.web.WebRequest.post(WebRequest.java:198)
	at net.filebot.web.TheTVDBClient.postJson(TheTVDBClient.java:75)
	at net.filebot.web.TheTVDBClient.getAuthorizationToken(TheTVDBClient.java:127)
	... 13 more

SocketTimeoutException: connect timed out
Is there any additionnal test to understand why it is not working anymore ? Ping, command line, ...

Without any help, my filebot license is useless and will request for a complete refund.

Thank you and have a nice day.
User avatar
rednoah
The Source
Posts: 18826
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TheTVDB - Failed to retrieve authorization token: connect timed out

Post by rednoah »

It's a network issue, because you're getting a network layer error:

Code: Select all

Caused by: java.net.SocketTimeoutException: connect timed out
:idea: https://stackoverflow.com/a/49705331/1514467


:idea: Now this could be that either the server is down, thus no response, or because a firewall or IP ban or ISP issue or other generic network issue is blocking network packages, thus no response, or anything else causing no response.


:idea: You could try to ping api.thetvdb.com and see if you get a response.


:idea: If you're using the GUI, then it should be self-explanatory, as you're currently clicking on a button labelled TheTVDB, and to use a different database, you'd simply click an a different nearby button, e.g. the one labelled TheMovieDB or the one labelled TVmaze.


:idea: If you're using the CLI, then the example command-line call in the post above shows --db TheTVDB being used:

Code: Select all

filebot -list --db TheTVDB --q Alias
Using a different database would then work as follows:

Code: Select all

filebot -list --db TheMovieDB::TV --q Alias
:idea: Please read the FAQ and How to Request Help.
Post Reply