Error getting bandwidth - full freeze/crash
Upon playing certain files (potentially direct playing/no transcoding), I get the following error:
[2025-08-18 23:21:37,821] [ERROR] <jellyfin|http://davenas:8096> Error getting bandwidth:
Traceback (most recent call last):
File "/home/modules/media_server.py", line 147, in run
bandwidth = int(self.get_bandwidth() * self._server_config.bandwidth_multiplier)
File "/home/modules/media_server.py", line 262, in get_bandwidth
bandwidth = int(session["TranscodingInfo"]["Bitrate"])
KeyError: 'TranscodingInfo'
(media_server.py:149)`
This makes the entire container unresponsive (doesn't adjust qBit settings anymore) but doesn't crash outright.
Restarting the container while the media at fault is still playing results in an immediate crash with a similar error:
[2025-08-18 23:21:41,304] [INFO] Starting Speedrr (main.py:28)
[2025-08-18 23:21:41,513] [ERROR] Uncaught exception: Traceback (most recent call last):
File "/home/./main.py", line 53, in <module>
plex_module = media_server.MediaServerModule(cfg, cfg.modules.media_servers, update_event)
File "/home/modules/media_server.py", line 41, in __init__
self.servers[-1].get_bandwidth()
File "/home/modules/media_server.py", line 262, in get_bandwidth
bandwidth = int(session["TranscodingInfo"]["Bitrate"])
KeyError: 'TranscodingInfo'
(log_loader.py:53)
I repulled the image and made sure I'm on the latest build. Jellyfin is on 10.10.7 Funny enough, speedrr has been working fine before - my config didn't change and it has been detecting bitrates without issue.
Here's one of the files I'm playing which seems to cause this:
Random shot in the dark: I'm using homarr which creates a jellyfin session to track what people are playing on its dashboard - not sure if this could interfere, as it doesn't start a stream.
I'm also limiting the internet streaming bitrate to 20Mbps in jellyfin. The file causing trouble is below that limit. Just another random observation.
Have you set the media_server's type to jellyfin in speedrr's config?
yes and your tool works fine otherwise. i cant seem to figure out which files/types of streams trigger this