jellyfin-mpv-shim
jellyfin-mpv-shim copied to clipboard
Could not add server
Describe the bug My jellyfin server works well on the browser, and I can connect to my server with mpv shim in virtual machine as well. But I can't do so on my PC. It just said "Could not add server. Please check your connection info." the version I used is "jellyfin-mpv-shim_2.8.0_installer.exe".
Desktop (please complete the following information):
- OS: windows11
- Version 24H2
Error Messages
2025-02-02 22:58:35,812 [ ERROR] JELLYFIN.jellyfin_apiclient_python.connection_manager: connect_to_address http://192.168.1.115:8096 failed
2025-02-02 22:58:35,812 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Trying to login to http://192.168.1.115:8096/Users/AuthenticateByName as (my account name)
2025-02-02 22:58:35,812 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending post request to Users/AuthenticateByName
2025-02-02 22:58:35,813 [ ERROR] JELLYFIN.jellyfin_apiclient_python.api: 'latin-1' codec can't encode characters in position 46-50: ordinal not in range(256)
2025-02-02 22:58:35,813 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: Failed to login as `(my account name)`
I have a similar issue, but my connection attempt is saying, "true" but returning an error of 403. Seems to be associated to this: https://github.com/jellyfin/jellyfin/issues/12752 (assuming the error code is from Jellyfin and not jellyfin-mpv). I'm using the flatpak version of the program on ubuntu. Log pasted below:
2025-02-11 19:10:19,446 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info/public
2025-02-11 19:10:19,454 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: connect_to_address http://127.MyIP:8096 succeeded
2025-02-11 19:10:19,455 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: begin connect_to_server
2025-02-11 19:10:19,455 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info/public
2025-02-11 19:10:19,459 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: calling onSuccessfulConnection with server None
2025-02-11 19:10:19,459 [ INFO] JELLYFIN.jellyfin_apiclient_python.credentials: {}
2025-02-11 19:10:19,459 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Trying to login to http://127.myIP:8096/Users/AuthenticateByName as MyUsername
2025-02-11 19:10:19,459 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending post request to Users/AuthenticateByName
2025-02-11 19:10:19,600 [ ERROR] JELLYFIN.jellyfin_apiclient_python.api: Failed to login to server with status code: 403
2025-02-11 19:10:19,600 [ ERROR] JELLYFIN.jellyfin_apiclient_python.api: Server Response:
b'Error processing request.'
2025-02-11 19:10:19,600 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: Failed to login as MyUsername
@ride-donkey
2025-02-02 22:58:35,813 [ ERROR] JELLYFIN.jellyfin_apiclient_python.api: 'latin-1' codec can't encode characters in position 46-50: ordinal not in range(256)
I believe Windows 11 is mangling your username or password when it gets sent over. A cheap workaround is to use ASCII characters maybe. What is your locale? https://stackoverflow.com/questions/57298260/ maybe try looking around this avenue?
Also experiencing this with shim version 2.8 (native NixOS package and Jellyfin server version 10.10.6). Browser and jellyfin-media-player both work as expected.
Shim log:
2025-02-19 15:09:33,893 [ INFO] player: Using libmpv1 playback backend.
2025-02-19 15:09:45,587 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info/public
2025-02-19 15:09:45,598 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: connect_to_address https://<redacted> succeeded
2025-02-19 15:09:45,599 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: begin connect_to_server
2025-02-19 15:09:45,599 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info/public
2025-02-19 15:09:45,605 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: calling onSuccessfulConnection with server None
2025-02-19 15:09:45,605 [ INFO] JELLYFIN.jellyfin_apiclient_python.credentials: {}
2025-02-19 15:09:45,605 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Trying to login to https://<redacted>/Users/AuthenticateByName as <redacted>
2025-02-19 15:09:45,606 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending post request to Users/AuthenticateByName
2025-02-19 15:09:46,145 [ ERROR] JELLYFIN.jellyfin_apiclient_python.api: Failed to login to server with status code: 401
2025-02-19 15:09:46,146 [ ERROR] JELLYFIN.jellyfin_apiclient_python.api: Server Response:
b'Error processing request.'
2025-02-19 15:09:46,146 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: Failed to login as `<redacted>`
I have a similar issue, but my connection attempt is saying, "true" but returning an error of 403. Seems to be associated to this: jellyfin/jellyfin#12752 (assuming the error code is from Jellyfin and not jellyfin-mpv). I'm using the flatpak version of the program on ubuntu. Log pasted below:
2025-02-11 19:10:19,446 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info/public 2025-02-11 19:10:19,454 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: connect_to_address http://127.MyIP:8096 succeeded 2025-02-11 19:10:19,455 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: begin connect_to_server 2025-02-11 19:10:19,455 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending get request to system/info/public 2025-02-11 19:10:19,459 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: calling onSuccessfulConnection with server None 2025-02-11 19:10:19,459 [ INFO] JELLYFIN.jellyfin_apiclient_python.credentials: {} 2025-02-11 19:10:19,459 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Trying to login to http://127.myIP:8096/Users/AuthenticateByName as MyUsername 2025-02-11 19:10:19,459 [ INFO] JELLYFIN.jellyfin_apiclient_python.api: Sending post request to Users/AuthenticateByName 2025-02-11 19:10:19,600 [ ERROR] JELLYFIN.jellyfin_apiclient_python.api: Failed to login to server with status code: 403 2025-02-11 19:10:19,600 [ ERROR] JELLYFIN.jellyfin_apiclient_python.api: Server Response: b'Error processing request.' 2025-02-11 19:10:19,600 [ INFO] JELLYFIN.jellyfin_apiclient_python.connection_manager: Failed to login as
MyUsername
So my error was one that was not specific to this software at all. Jellyfin applications are finding my server based on an IP that is not my actual server, but connected to it. If I connect to my own server on the device running it, I can find the IP that is the "real" IP to connect to the server. So my error was user error and not this software at all.
@sjwhitak My user name only includes letters. And my jellyfin server is running on Ubuntu 24.04.1 LTS. I ran the code
import sys
import locale
print(sys.getfilesystemencoding())
print(locale.getpreferredencoding())
which is mentioned in your link and the outputs are all UTF-8.
And the outputs on my client Win11 24H2 are utf-8 and cp65001.
i same too
@ride-donkey 可能是你的设备名称中包含中文,检查config文件中,player_name,我改为了全英文就解决了。
I've have a similar issue for a friend. Has anyone tried connecting to a server via mobile hotspot or a different network that has been failing to see if that works? That worked for my friend so now we trying to find out why its working on one network but not the other.