sct / overseerr

Request management and media discovery tool for the Plex ecosystem
https://overseerr.dev
MIT License
3.73k stars 437 forks source link

TMDB Error: Failed to Fetch / Movie Not Found #3887

Open Hark0q opened 2 months ago

Hark0q commented 2 months ago

Description

I've recently started having an issue where Overseerr isn't able to get data from TMDB. I have seen some people having this issue due to router/dns ad-blocking, I am running Adguard home but the tests below seem to suggest that's not the cause.

Has TMDB removed unauthenticated access to their API? There doesn't seem to be anywhere in Overseerr to configure the TMDB API key unless I'm mistaken?

Version

1.33.2

Steps to Reproduce

  1. Create Overseerr docker container
  2. Open the Overseerr web interface in any browser
  3. Media information will fail to load
  4. Confirm error messages in Overseerr logs
  5. Run wget within overseerr container to TMDB API without API key and confirm 401 error:
    $ docker exec -it overseerr wget https://api.themoviedb.org/3/search/movie?query=Jack+Reacher -O-
    Connecting to api.themoviedb.org (18.165.183.81:443)
    wget: server returned error: HTTP/1.1 401 Unauthorized
  6. Run wget within overseerr container to TMDB API with API key and confirm successful response:
    $ docker exec -it overseerr wget 'https://api.themoviedb.org/3/search/movie?query=Jack+Reacher&api_key=<redacted>' -O-
    Connecting to api.themoviedb.org (18.165.183.111:443)
    writing to stdout
    {"page":1,"results":[{"adult":false,"backdrop_path":"/iwvP8XVpYVmJ3xfF9xdBi5uAOWl.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":67.494,"poster_path":"/uQBbjrLVsUibWxNDGA4Czzo8lwz.jpg","release_date":"2012-12-20","title":"Jack Reacher","video":false,"vote_average":6.6,"vote_count":6819},{"adult":false,"backdrop_path":"/ww1eIoywghjoMzRLRIcbJLuKnJH.jpg","genre_ids":[28,53],"id":343611,"original_language":"en","original_title":"Jack Reacher: Never Go Back","overview":"When Major Susan Turner is arrested for treason, ex-investigator Jack Reacher undertakes the challenging task to prove her innocence and ends up exposing a shocking conspiracy.","popularity":66.901,"poster_path":"/cOg3UT2NYWHZxp41vpxAnVCOC4M.jpg","release_date":"2016-10-19","title":"Jack Reacher: Never Go Back","video":false,"vote_average":6.0,"vote_count":4735},{"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":10.774,"poster_path":"/tcOPca5Ook6aR9mehrnxD9kfk7m.jpg","release_date":"2013-05-07","title":"Jack Reacher: When the Man Comes Around","video-                    100% |********************************************************************************************|  2178  0:00:00 ETA
    written to stdout

Screenshots

image

Logs

$ docker logs overseerr
2024-07-02T01:30:15.405Z [debug][API]: Something went wrong retrieving languages {"errorMessage":"[TMDB] Failed to fetch langauges: "}
2024-07-02T01:30:15.408Z [debug][API]: Something went wrong retrieving regions {"errorMessage":"[TMDB] Failed to fetch countries: "}
2024-07-02T01:30:16.516Z [debug][API]: Something went wrong retrieving trending items {"errorMessage":"[TMDB] Failed to fetch all trending: "}
2024-07-02T01:30:16.520Z [debug][API]: Something went wrong retrieving the movie genre slider {"errorMessage":"[TMDB] Failed to fetch movie genres: "}
2024-07-02T01:30:16.521Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: "}
2024-07-02T01:30:16.522Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: "}
2024-07-02T01:30:16.523Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: "}
2024-07-02T01:30:17.027Z [debug][API]: Something went wrong retrieving the series genre slider {"errorMessage":"[TMDB] Failed to fetch TV genres: "}
2024-07-02T01:30:17.583Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: "}
2024-07-02T01:30:17.675Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: ","movieId":"766507"}
2024-07-02T01:30:17.682Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: ","movieId":"121"}
2024-07-02T01:30:17.688Z [debug][API]: Something went wrong retrieving movie {"errorMessage":"[TMDB] Failed to fetch movie details: ","movieId":"122"}
2024-07-02T01:30:17.936Z [debug][API]: Something went wrong retrieving trending items {"errorMessage":"[TMDB] Failed to fetch all trending: "}
2024-07-02T01:30:17.940Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: "}
2024-07-02T01:30:17.942Z [debug][API]: Something went wrong retrieving the movie genre slider {"errorMessage":"[TMDB] Failed to fetch movie genres: "}
2024-07-02T01:30:17.943Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: "}
2024-07-02T01:30:17.954Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: "}

Platform

desktop

Device

Macbook

Operating System

MacOS 14.5

Browser

Chrome & Safari

Additional Context

No response

Code of Conduct

leejayhsu commented 1 month ago

I feel like the issue may not be related unauthenticated tmdb api calls, because overseerr uses a tmdb api key here

Wav3y commented 1 month ago

I'm having the same issue and I've just set it up.


2024-08-04T10:09:01.073Z [debug][API]: Something went wrong retrieving regions {"errorMessage":"[TMDB] Failed to fetch countries: "}

2024-08-04T10:09:01.076Z [debug][API]: Something went wrong retrieving languages {"errorMessage":"[TMDB] Failed to fetch langauges: "}

2024-08-04T10:09:35.667Z [debug][API]: Something went wrong retrieving regions {"errorMessage":"[TMDB] Failed to fetch countries: "}

2024-08-04T10:09:35.670Z [debug][API]: Something went wrong retrieving languages {"errorMessage":"[TMDB] Failed to fetch langauges: "}

2024-08-04T10:09:38.876Z [info][Jobs]: Starting scheduled job: Plex Watchlist Sync 

2024-08-04T10:09:50.625Z [error][Plex.TV Metadata API]: Failed to retrieve watchlist items {"errorMessage":""}

2024-08-04T10:09:51.066Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: "}

2024-08-04T10:09:51.069Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: "}

2024-08-04T10:09:51.072Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: "}
ZoltrixGFC commented 1 month ago

Same issue. Seems related to TMDB having Quiet Place Part III under that ID, then removing it.

image

image

Wav3y commented 1 month ago

I'm having the same issue and I've just set it up.


2024-08-04T10:09:01.073Z [debug][API]: Something went wrong retrieving regions {"errorMessage":"[TMDB] Failed to fetch countries: "}

2024-08-04T10:09:01.076Z [debug][API]: Something went wrong retrieving languages {"errorMessage":"[TMDB] Failed to fetch langauges: "}

2024-08-04T10:09:35.667Z [debug][API]: Something went wrong retrieving regions {"errorMessage":"[TMDB] Failed to fetch countries: "}

2024-08-04T10:09:35.670Z [debug][API]: Something went wrong retrieving languages {"errorMessage":"[TMDB] Failed to fetch langauges: "}

2024-08-04T10:09:38.876Z [info][Jobs]: Starting scheduled job: Plex Watchlist Sync 

2024-08-04T10:09:50.625Z [error][Plex.TV Metadata API]: Failed to retrieve watchlist items {"errorMessage":""}

2024-08-04T10:09:51.066Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: "}

2024-08-04T10:09:51.069Z [debug][API]: Something went wrong retrieving popular series {"errorMessage":"[TMDB] Failed to fetch discover TV: "}

2024-08-04T10:09:51.072Z [debug][API]: Something went wrong retrieving popular movies {"errorMessage":"[TMDB] Failed to fetch discover movies: "}

My issue was related to TMDB blocking certain VPN servers / maybe countries that my VPN was connecting via. Connecting to a Western server seemed to have fixed the issue for me.

stewartcampbell commented 1 month ago

Could it be a simple timeout issue from TMDB? Using the commands above I could get data back while on VPN, but it took a while. Overseerr shows an error much quicker.

I tried again a few times off VPN and see this:

--2024-08-17 20:44:46--  https://api.themoviedb.org/3/search/movie?query=Jack+Reacher
Resolving api.themoviedb.org (api.themoviedb.org)... 108.156.46.56, 108.156.46.129, 108.156.46.80, ...
Connecting to api.themoviedb.org (api.themoviedb.org)|108.156.46.56|:443... connected.
OpenSSL: error:0A000126:SSL routines::unexpected eof while reading
Unable to establish SSL connection.

I only started playing with it today, so no idea what it used to respond like.

matthiasnm commented 4 weeks ago

For anyone reading this is most likely a network issue. I was about to comment my error as well which is similar, but than realized I couldn't use docker to pull a new image and contributed it to a network issue. My firewall was blocking my device. Once I resolved that issue overseer was than working like normal.

stewartcampbell commented 3 weeks ago

Thanks @matthiasnm, you gave me some ideas to look into .

I am using Docker Desktop on Windows 11 with WSL2 integration to run everything, and realized that it was only calls from within my WSL2 environment that were slow.

After some Googling known WSL2 issues I found a common theme was Large Send Offset on the network adapters causing speed degradation.

A quick PowerShell (admin) command and reboot sorted me out. Unsure if the reboot was needed but it's Windows so... probably.

$adapters = Get-NetAdapterLso -IncludeHidden

foreach ($adapter in $adapters) {
    Write-Host "Disabling LSO for adapter: $($adapter.Name)"
    Disable-NetAdapterLso -IncludeHidden -Name $adapter.Name -Confirm:$false
}

Its been 24 hours now and my speed is still great, so hopefully that's it resolved for me at least. Obviously this doesn't help OP since they reported using a MacBook, but networking issues definitely seem like a common theme.