Jump to content

Seems like themoviedb api of emby can't work


Earendil
Go to solution Solved by Earendil,

Recommended Posts

Earendil

I can connect api.themoviedb.org. Seems like it's the api's problem.

2022-08-28 18:55:08.841 Error App: Error in TheMovieDb
	*** Error Report ***
	Version: 4.7.5.0
	Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3
	Operating system: Linux version 5.4.0-125-generic (buildd@lcy02-amd64-083) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: system/System.Private.CoreLib.dll
	Processor count: 1
	Data path: /config
	Application path: /system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Cancelling connection to https://api.themoviedb.org/3/configuration?api_key=‌f6bd687ffa63cd282b6ff2c6877f2669‌ due to a previous timeout.
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.(HttpRequestOptions , String )
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
	   at MovieDb.MovieDbProvider.GetMovieDbResponse(HttpRequestOptions options)
	   at MovieDb.MovieDbProvider.GetTmdbSettings(CancellationToken cancellationToken)
	   at MovieDb.MovieDbEpisodeProvider.GetMetadata(RemoteMetadataFetchOptions`1 options, CancellationToken cancellationToken)
	   at Emby.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, LibraryOptions libraryOptions, String logName, TIdType id, IEnumerable`1 providers, MetadataRefreshOptions options, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void ()
Edited by Earendil
Link to comment
Share on other sites

Earendil
8 hours ago, Luke said:

Please attach the complete emby server log. Thanks.

OK, it's here.

Sometimes when I refresh the metadata, it will work (using the same api), but usually it can't work both in identify and refresh metadata, it's strange

embyserver.txt

Edited by Earendil
Link to comment
Share on other sites

Earendil
8 hours ago, Happy2Play said:

Do you use a vpn?

No, I can connect to api.themoviedb.org easily.

For example, using emby's api 

https://api.themoviedb.org/3/tv/72636/season/2/episode/8?api_key=‌f6bd687ffa63cd282b6ff2c6877f2669‌&append_to_response=images,external_ids,credits,videos&language=zh-CN&include_image_language=zh-CN,zh,null,en

will get:

{"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}

And if I change the api f6bd687ffa63cd282b6ff2c6877f2669 to my own, it will scrape the info successfully like

{"air_date":"2022-08-24","crew":[],"episode_number":8,"guest_stars":[],"name":"愿望的形体","overview":"","id":3792312,"production_code":"","runtime":24,"season_number":2,"still_path":"/kEKArZGftRn9wjLWxZ8yR2WGLwN.jpg","vote_average":0.0,"vote_count":0,"images":{"stills":[{"aspect_ratio":1.776,"height":1126,"iso_639_1":null,"file_path":"/kEKArZGftRn9wjLWxZ8yR2WGLwN.jpg","vote_average":0.0,"vote_count":0,"width":2000},{"aspect_ratio":1.776,"height":1126,"iso_639_1":null,"file_path":"/nRKsrakHdc62vTw1VYw3RnoNGnp.jpg","vote_average":0.0,"vote_count":0,"width":2000},{"aspect_ratio":1.776,"height":1126,"iso_639_1":null,"file_path":"/3UMwyXZ9wZMTzfAOgutVQPrsgH3.jpg","vote_average":0.0,"vote_count":0,"width":2000},{"aspect_ratio":1.776,"height":1126,"iso_639_1":null,"file_path":"/8VQpR0F3GnAiaxKRu1diJKEnDPs.jpg","vote_average":0.0,"vote_count":0,"width":2000},{"aspect_ratio":1.776,"height":1126,"iso_639_1":null,"file_path":"/a8zTSBCo8HMkKbGFiQnkXe8kvOV.jpg","vote_average":0.0,"vote_count":0,"width":2000},{"aspect_ratio":1.776,"height":1126,"iso_639_1":null,"file_path":"/5rLHJRJNXDnxJ8GiwOYQm8AgfqB.jpg","vote_average":0.0,"vote_count":0,"width":2000}]},"videos":{"results":[]},"credits":{"cast":[],"crew":[],"guest_stars":[]},"external_ids":{"imdb_id":"tt21406234","freebase_mid":null,"freebase_id":null,"tvdb_id":9220730,"tvrage_id":null}}

 

embyserver.txt

Edited by Earendil
Link to comment
Share on other sites

Happy2Play

It is not the Emby key as there are hidden characters that cause copy and paste or clicking on the url to fail.

Link to comment
Share on other sites

Earendil
3 hours ago, Happy2Play said:

It is not the Emby key as there are hidden characters that cause copy and paste or clicking on the url to fail.

After tried another server's emby and it works well, I think it's not the api's problem.

But I don't know how to solve this server's problem. Now the moviedb service is unstable, sometimes works and always fails.

Can you tell me how to debug my emby server? It's so strange.

 

Edited by Earendil
Link to comment
Share on other sites

Earendil
5 hours ago, Happy2Play said:

It is not the Emby key as there are hidden characters that cause copy and paste or clicking on the url to fail.

And I find I can search the series by themoviedb Id LOL

But searching by title can't work as usual

Link to comment
Share on other sites

It looks like your requests to MovieDb are timing out and failing. Something could be blocking Emby Server from sending out these requests. Typical causes of this are firewall, security software, or VPN. Can you look into this?

Link to comment
Share on other sites

  • Solution
Earendil
14 hours ago, Luke said:

It looks like your requests to MovieDb are timing out and failing. Something could be blocking Emby Server from sending out these requests. Typical causes of this are firewall, security software, or VPN. Can you look into this?

I solve this problem by change the network mode of the container from host to bridge, and it can work.

  • Thanks 1
Link to comment
Share on other sites

  • 6 months later...
lepopps

Ola, estou tendo o mesmo problema com o theMovieDb ... na maioria das vezes não carrega as imagens ... e no log .. o mesmo erro ... Isso já faz mais de 3 meses, do nada funciona um dia, e dae para de funcionar por vários dias ... Não sei como resolver isso ...  Pelo que testei não têm nada no servidor impedindo a conexão com o endereço da api ... Segue abaixo parte do log do erro .... Qualquer ajuda será bem vinda ... Obrigado !

Link to comment
Share on other sites

lepopps

Ola, estou tendo o mesmo problema com o theMovieDb ... na maioria das vezes não carrega as imagens ... e no log .. o mesmo erro ... Isso já faz mais de 3 meses, do nada funciona um dia, e dae para de funcionar por vários dias ... Não sei como resolver isso ... Pelo que testei não têm nada no servidor impedindo a conexão com o endereço da api ... Segue abaixo parte do log do erro .... Qualquer ajuda sera bem vinda ... Obrigado !

 

*** Error Report ***
Version: 4.7.11.0
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-rpm_{version}_x86_64.rpm
Operating system: Linux version 4.18.0-348.20.1.el8_5.x86_64 (mockbuild@x86-vm-07.build.eng.bos.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC)) #1 SMP
Framework: .NET 6.0.8
OS/Process: x64/x64
Runtime: opt/emby-server/system/System.Private.CoreLib.dll
Processor count: 8
Data path: /var/lib/emby
Application path: /opt/emby-server/system
MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Connection to https://image.tmdb.org/t/p/original/rC5GUHvKxlk3WPyCh4mQ5q6HDxG.jpg timed out
---> System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 20 seconds elapsing.
---> System.TimeoutException: A task was canceled.
---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
Link to comment
Share on other sites

2 hours ago, lepopps said:

Ola, estou tendo o mesmo problema com o theMovieDb ... na maioria das vezes não carrega as imagens ... e no log .. o mesmo erro ... Isso já faz mais de 3 meses, do nada funciona um dia, e dae para de funcionar por vários dias ... Não sei como resolver isso ... Pelo que testei não têm nada no servidor impedindo a conexão com o endereço da api ... Segue abaixo parte do log do erro .... Qualquer ajuda sera bem vinda ... Obrigado !

 

*** Error Report ***
Version: 4.7.11.0
Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-rpm_{version}_x86_64.rpm
Operating system: Linux version 4.18.0-348.20.1.el8_5.x86_64 (mockbuild@x86-vm-07.build.eng.bos.redhat.com) (gcc version 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC)) #1 SMP
Framework: .NET 6.0.8
OS/Process: x64/x64
Runtime: opt/emby-server/system/System.Private.CoreLib.dll
Processor count: 8
Data path: /var/lib/emby
Application path: /opt/emby-server/system
MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Connection to https://image.tmdb.org/t/p/original/rC5GUHvKxlk3WPyCh4mQ5q6HDxG.jpg timed out
---> System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 20 seconds elapsing.
---> System.TimeoutException: A task was canceled.
---> System.Threading.Tasks.TaskCanceledException: A task was canceled.

Hi there, please attach the complete emby server log file. Thanks !

Link to comment
Share on other sites

  • 5 months later...
lepopps

Ola, Gostaria de compartilhar uma descoberta sobre o problema relatado acima.

 

Esse problema acima, já aconteceu com 3 servidores diferentes, e em redes diferentes, em diferentes épocas, mas o mesmo sintoma, do nada volta a funcionar, e do nada para de funcionar ...

Hoje, tenho um servidor Linux rhel 8.5, tenho 4 bibliotecas sendo, filmes (6000 filmes), séries (25000 títulos), músicas (20000 músicas) e vídeos musicais (500 vídeos);

Está acontecendo o mesmo problema isso já faz mais de 6 meses .... Mesmo fazendo várias atualizações ... Hoje estou utilizando a versão 4.7.13.0.

Percebi que quando eu adiciono alguns títulos na biblioteca filmes, o servidor busca os meta dados certo, mas não atualiza as imagens, as vezes fica certa de 20 a 30 títulos sem capas ... as vezes demora mais de uma semana para o servidor conseguir essas imagens ...

 

Mas percebi, que quando eu adiciono mais títulos na biblioteca séries, o servidor atualiza as séries normalmente e dae volta a funcionar também as imagens da biblioteca filmes, como se isso destravasse algo .... já fiz esse teste aqui umas 6 vezes e funcionou pra mim !

Percebi que esse problema só começa a aparecer, quando as bibliotecas estão ficando com um tamanho maior ... em cenários com poucos arquivos de mídia, isso não ocorre !

 

Apenas gostaria de compartilhar esses testes e ajudar a encontrar algum possível problema;

Obrigado

 

 

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...