mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
TMDB timeout handling #6393
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Arcturuss on GitHub (Oct 28, 2024).
This issue respects the following points:
Description of the bug
tl;dr: Jellyfin throws 500 "Error processing request" after request to TMDB timeouts, when it really should not.
There is a number of issues about errors caused by themoviedb.org request timeout (mostly due to it not responding over ipv6): #10584 #12255 #12103 and so on. While most issues can be fixed by removing the underlying cause (ipv6), i think handling this kind of errors on Jellyfin side should be fixed too.
Take for example request to show a person metadata (GET | http://localhost:8096/Users/<...>/Items/<...>). When there is no internet connection whatsoever, it works just fine (and logs error System.Net.Http.HttpRequestException: No such host is known. (api.themoviedb.org:443)). But timeout error cause this request to fail completely for some unknown reason.
Additionally, the Web UI is not showing any errors in this case, just spins the spinner endlessly. But I guess this should go to the separate issue.
Reproduction steps
What is the current bug behavior?
Some API requests to Jellyfin fail with code 500 when Jellyfin's request to the TMDB timeouts
What is the expected correct behavior?
These API requests should behave the same way as they behave without internet connection whatsoever. Or at least not return 500 after timeout.
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.10.0
Environment
Jellyfin logs
FFmpeg logs
No response
Client / Browser logs
Request URL: http://:8096/Users/e3cd27ea482b457fb4452bf97d84896e/Items/8acc5a5f8c7b9e303db47b6c446fa521
Request Method: GET
Status Code: 500 Internal Server Error
Remote Address: :8096
Referrer Policy: no-referrer
Response: Error processing request.
Relevant screenshots or videos
No response
Additional information
No response
@jellyfin-bot commented on GitHub (Feb 26, 2025):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@Arcturuss commented on GitHub (Mar 5, 2025):
Should I make a separate issue in TMDB plugin repo?
@Shadowghost commented on GitHub (Mar 5, 2025):
Please create an issue about it on https://github.com/jellyfin/TMDbLib
The fix for this is to implement/configure HappyEyeballs (fallback from IPv5 to IPv4) for the HTTP client used by tmdblib.
We already have an implementation for it in Jellyfin but it's for a different HTTP client library and therefore not used by the tmdb calls.
@jellyfin-bot commented on GitHub (Jul 4, 2025):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@jellyfin-bot commented on GitHub (Jul 25, 2025):
This issue was closed due to inactivity.