luigi311 / JellyPlex-Watched

Sync watched between jellyfin and plex locally
GNU General Public License v3.0
392 stars 19 forks source link

[ERROR]: Expecting value: line 1 column 1 (char 0) #110

Open louiseuk opened 10 months ago

louiseuk commented 10 months ago

Describe the bug Bug/error happens when launching application via Docker UI in unraid.

To Reproduce Steps to reproduce the behavior: Run app Open log file image

Expected behavior Application should run

Logs [ERROR]: Expecting value: line 1 column 1 (char 0) [ERROR]: Traceback (most recent call last): File "/app/src/main.py", line 385, in main main_loop() File "/app/src/main.py", line 261, in main_loop user_mapping = json.loads(user_mapping.lower()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/init.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Retrying in 3600.0

Type:

Additional context Add any other context about the problem here.

andrewm659 commented 10 months ago

Also running into the same issue using Docker on AlmaLinux 9.x with privileged mode enabled.

ggrensteiner commented 9 months ago

Same issue with docker-compose on ubuntu 20 server.

luigi311 commented 9 months ago

Looks like this is an issue with how you guys have your user mapping variables set. Can you guys post what you guys have in either unraid or in your docker compose

louiseuk commented 9 months ago

Thanks, luigi. I'm running off an UNRAID template - Container Variable: USER_MAPPING louise.uk:louise (first is plex username, second is jellyfin username, but it doesn't matter which order, I get the same error)

luigi311 commented 9 months ago

Can you try {"louise.uk":"louise"}

louiseuk commented 9 months ago

No luck, similar (but slightly different) error...

[ERROR]: Extra data: line 1 column 12 (char 11) [ERROR]: Traceback (most recent call last): File "/app/src/main.py", line 385, in main main_loop() File "/app/src/main.py", line 261, in main_loop user_mapping = json.loads(user_mapping.lower()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/init.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 340, in decode raise JSONDecodeError("Extra data", s, end) json.decoder.JSONDecodeError: Extra data: line 1 column 12 (char 11)

luigi311 commented 9 months ago

unfortunately this isnt something i can replicate when i put in what i told you. If i put it in without the curly braces i get the same error but it works perfectly fine when i copy and paste in {"louise.uk":"louise"}

Does it run without any errors if you try with the user mapping being empty?

andrewm659 commented 8 months ago

I am using portainer and can't get the docker-compose. I didn't make it a stack.

exxrxxe commented 3 months ago

I was receiving the same error in Unraid that started this issue and successful fixed my issue utilizing {"user1":"user11"}