Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users not retreived #247

Open
penco100 opened this issue Mar 5, 2025 · 0 comments
Open

Users not retreived #247

penco100 opened this issue Mar 5, 2025 · 0 comments

Comments

@penco100
Copy link

penco100 commented Mar 5, 2025

Script is not able to get the Users from jellyfin

The installation of JellyPlex, Plex and Jellyfin are in container in the same host

Here the logs

User is root, checking if we need to create a user and group based on environment variables
Starting JellyPlex-Watched with UID: 1000 and GID: 1000
2025-03-05 23:11:59.158 | INFO | src.main:main_loop:116 - Dryrun: True
2025-03-05 23:11:59.164 | INFO | src.main:main_loop:121 - User Mapping: {'penco100': 'daniele'}
2025-03-05 23:11:59.165 | INFO | src.main:main_loop:126 - Library Mapping: {'Film': 'Film'}
2025-03-05 23:11:59.165 | INFO | src.main:main_loop:129 - Creating (black/white)lists
2025-03-05 23:11:59.166 | INFO | src.main:main_loop:160 - Creating server connections
2025-03-05 23:12:03.223 | ERROR | src.jellyfin_emby:query:157 - Jellyfin: Query get /Users
Results None
Expecting value: line 1 column 1 (char 0)
2025-03-05 23:12:03.224 | ERROR | src.jellyfin_emby:get_users:199 - Jellyfin: Get users failed Expecting value: line 1 column 1 (char 0)
2025-03-05 23:12:03.225 | ERROR | src.main:main:271 - Expecting value: line 1 column 1 (char 0)
2025-03-05 23:12:03.277 | ERROR | src.main:main:273 - Traceback (most recent call last):
File "/app/.venv/lib/python3.13/site-packages/requests/models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/json/init.py", line 346, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "/usr/local/lib/python3.13/json/decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/json/decoder.py", line 363, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/src/jellyfin_emby.py", line 128, in query
results = response.json()
File "/app/.venv/lib/python3.13/site-packages/requests/models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/src/jellyfin_emby.py", line 189, in get_users
response: list[dict[str, str | bool]] = self.query(query_string, "get")
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/app/src/jellyfin_emby.py", line 160, in query
raise Exception(e)
Exception: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/src/main.py", line 253, in main
main_loop()
~~~~~~~~~^^
File "/app/src/main.py", line 161, in main_loop
servers = generate_server_connections()
File "/app/src/connection.py", line 110, in generate_server_connections
jellyfin_emby_server_connection(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
jellyfin_baseurl, jellyfin_token, "jellyfin"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/src/connection.py", line 34, in jellyfin_emby_server_connection
server = Jellyfin(baseurl=baseurl, token=server_tokens[i].strip())
File "/app/src/jellyfin.py", line 20, in init
super().init(
~~~~~~~~~~~~~~~~^
server_type="Jellyfin", baseurl=baseurl, token=token, headers=headers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/src/jellyfin_emby.py", line 102, in init
self.users = self.get_users()
~~~~~~~~~~~~~~^^
File "/app/src/jellyfin_emby.py", line 200, in get_users
raise Exception(e)
Exception: Expecting value: line 1 column 1 (char 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant