Couldn't connect to TMDB database

Support for Ubuntu and other Desktop Linux distributions
Post Reply
choco
Posts: 1
Joined: Today, 14:35

Couldn't connect to TMDB database

Post by choco »

I have this connection error when I use filebot cli in ubuntu.

Console Output: Select all

Failed to fetch resource: https://api.themoviedb.org/3/search/tv: HTTP connect timed out
HTTP connect timed out
java.net.http.HttpConnectTimeoutException: HTTP connect timed out
        at net.filebot.web.WebRequest.doRequest(Unknown Source)
        at net.filebot.web.WebRequest.httpRequestV2(Unknown Source)
        at net.filebot.web.WebRequest.fetch(Unknown Source)
        at net.filebot.CachedResource.lambda$fetchIfNoneMatch$19(Unknown Source)
        at net.filebot.CachedResource.lambda$get$0(Unknown Source)
        at net.filebot.CachedResource.retry(Unknown Source)
        at net.filebot.CachedResource.retry(Unknown Source)
        at net.filebot.CachedResource.retry(Unknown Source)
        at net.filebot.CachedResource.lambda$get$1(Unknown Source)
        at net.filebot.Cache.computeIf(Unknown Source)
        at net.filebot.Cache$ConcurrentCache.lambda$computeIf$1(Unknown Source)
        at net.filebot.Cache$ConcurrentCache.withLock(Unknown Source)
        at net.filebot.Cache$ConcurrentCache.computeIf(Unknown Source)
        at net.filebot.CachedResource.get(Unknown Source)
        at net.filebot.web.TMDbCore.request(Unknown Source)
        at net.filebot.web.TMDbTVClient.search(Unknown Source)
        at net.filebot.web.TMDbTVClient.fetchSearchResult(Unknown Source)
        at net.filebot.WebServices$TMDbTVClient.fetchSearchResult(Unknown Source)
        at net.filebot.web.AbstractEpisodeListProvider.lambda$search$0(Unknown Source)
        at net.filebot.Cache.computeIf(Unknown Source)
        at net.filebot.Cache$TypedCache.computeIf(Unknown Source)
        at net.filebot.Cache.computeIfAbsent(Unknown Source)
        at net.filebot.Cache$TypedCache.computeIfAbsent(Unknown Source)
        at net.filebot.web.AbstractEpisodeListProvider.search(Unknown Source)
        at net.filebot.cli.CmdlineOperations.lookupSeries(Unknown Source)
        at net.filebot.cli.CmdlineOperations.fetchEpisodeSet(Unknown Source)
        at net.filebot.cli.CmdlineOperations.renameSeries(Unknown Source)
        at net.filebot.cli.CmdlineOperations.rename(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.runCommand(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
        at net.filebot.Main.main(Unknown Source)
Caused by: java.net.http.HttpConnectTimeoutException: HTTP connect timed out
Caused by: java.net.ConnectException: HTTP connect timed out
but in the same terminal I can get proper response from api.themoviedb.org.
What I ran:

Shell: Select all

curl --request GET --url 'https://api.themoviedb.org/3/search/movie?query=Jack+Reacher' --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJiMWI0YzE*********p6BL38yU'
What I got:

Console Output: Select all

{"page":1,"results":[{"adult":false,"backdrop_path":"/2v3pC01rf0uXnECOM94pjfqk1TY.jpg","genre_ids":[80,18,53,28],"id":75780,"original_language":"en","original_title":"Jack Reacher","overview":"One morning in an ordinary town, five people are shot dead in a seemingly random attack. All evidence points to a single suspect: an ex-military sniper who is quickly brought into custody. The interrogation yields one written note: 'Get Jack Reacher!'. Reacher, an enigmatic ex-Army investigator, believes the authorities have the right man but agrees to help the sniper's defense attorney. However, the more Reacher delves into the case, the less clear-cut it appears. So begins an extraordinary chase for the truth, pitting Jack Reacher against an unexpected enemy, with a skill for violence and a secret to keep.","popularity":17.5791,"poster_path":"/uQBbjrLVsUibWxNDGA4Czzo8lwz.jpg","release_date":"2012-12-20","title":"Jack Reacher","video":false,"vote_average":6.643,"vote_count":7176},{"adult":false,"backdrop_path":null,"genre_ids":[99],"id":1045592,"original_language":"en","original_title":"Jack Reacher: When the Man Comes Around","overview":"Cast and crew speak on adapting One Shot as the first Jack Reacher film, casting Tom Cruise, earning Lee Child's blessing, additional character qualities and the performances that shape them, Lee Child's cameo in the film, and shooting the film's climax.","popularity":2.2235,"poster_path":"/tcOPca5Ook6aR9mehrnxD9kfk7m.jpg","release_date":"2013-05-07","title":"Jack Reacher: When the Man Comes Around","video":false,"vote_average":7.9,"vote_count":4},{"adult":false,"backdrop_path":"/ww1eIoywghjoMzRLRIcbJLuKnJH.jpg","genre_ids":[28,53],"id":343611,"original_language":"en","original_title":"Jack Reacher: Never Go Back","overview":"Years after resigning command of an elite military police unit, the nomadic, righter-of-wrongs Reacher is drawn back into the life he left behind when his friend and successor, Major Susan Turner is framed for espionage. Reacher will stop at nothing to prove her innocence and to expose the real perpetrators behind the killings of his former soldiers.","popularity":7.7736,"poster_path":"/cOg3UT2NYWHZxp41vpxAnVCOC4M.jpg","release_date":"2016-10-19","title":"Jack Reacher: Never Go Back","video":false,"vote_average":6.0,"vote_count":4997}],"total_pages":1,"total_results":3}
Trying to figure out how to solve it.
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Couldn't connect to TMDB database

Post by rednoah »

Code: Select all

Caused by: java.net.http.HttpConnectTimeoutException: HTTP connect timed out
Caused by: java.net.ConnectException: HTTP connect timed out
There's probably not much you can do. If it reliably and repeatedly doesn't work from FileBot but always works with curl, then that would be most unusual. Could be anything. I'd wait for a day and see if the issue resolves itself. You could check which IPs api.themoviedb.org can resolve to since it might work for some routes but not others. You could try the java.net.preferIPv4Stack=true network setting. You could try different internet connections (e.g. use your mobile phone as hotspot) to see if that makes a difference.
:idea: Please read the FAQ and How to Request Help.
Post Reply