2025-03-28, 12:52 PM
(This post was last modified: 2025-03-28, 12:57 PM by thymon. Edited 2 times in total.)
(2025-03-27, 02:05 PM)TheDreadPirate Wrote: For the expired token, find the device and log out and back in. It is probably an Android TV device.
It's never the same devices, and since the server reboots at least once a day, they all get disconnected anyway.
Today, I encountered this error, which flooded the logs and caused RAM usage to spike within minutes:
Code:
[2025-03-28 12:04:00.621 +01:00] [ERR] [479] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-03-28 12:04:00.742 +01:00] [ERR] [468] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-03-28 12:04:00.748 +01:00] [ERR] [468] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-03-28 12:04:01.569 +01:00] [ERR] [469] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-03-28 12:04:01.572 +01:00] [ERR] [469] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-03-28 12:04:01.575 +01:00] [ERR] [469] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-03-28 12:04:01.577 +01:00] [ERR] [469] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-03-28 12:04:01.580 +01:00] [ERR] [469] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-03-28 12:04:01.583 +01:00] [ERR] [469] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST" "/Sessions/Playing/Progress".
[2025-03-28 12:04:01.585 +01:00] [ERR] [469] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Unexpected end of request content". URL "POST"
How should I interpret this, and how can I prevent it?
Could there be something to investigate on the reverse proxy side?
Here’s what I’ve applied to my NPM :
Code:
# Disable buffering when the nginx proxy gets very resource heavy upon streaming
proxy_buffering off;
# Proxy main Jellyfin traffic
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_headers_hash_max_size 2048;
proxy_headers_hash_bucket_size 128;
# Security / XSS Mitigation Headers
add_header X-Content-Type-Options "nosniff";
# Content Security Policy
# See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
# Enforces https content and restricts JS/CSS to origin
# External Javascript (such as cast_sender.js for Chromecast) must be whitelisted.
add_header Content-Security-Policy "default-src https: data: blob: ; img-src 'self' https://* ; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com https://www.youtube.com blob:; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; frame-ancestors 'self'; font-src 'self'";
(2025-03-27, 02:05 PM)TheDreadPirate Wrote: For TVDB and OpenSubtitles, is IPv6 enabled in Jellyfin? What I often see if that there is a mismatch between the host and Jellyfin. Usually the host has IPv6 enabled, but it isn't enabled in Jellyfin.
No IPv6 enabled on my server