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

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

Open
1 of 3 tasks
louiseuk opened this issue Oct 9, 2023 · 9 comments
Open
1 of 3 tasks

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

louiseuk opened this issue Oct 9, 2023 · 9 comments

Comments

@louiseuk
Copy link

louiseuk commented Oct 9, 2023

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:

  • Docker Compose
  • Docker
  • Native

Additional context
Add any other context about the problem here.

@andrewm659
Copy link

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

@ggrensteiner
Copy link

Same issue with docker-compose on ubuntu 20 server.

@luigi311
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@louiseuk
Copy link
Author

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
Copy link
Owner

luigi311 commented Nov 18, 2023

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?

@luigi311 luigi311 mentioned this issue Dec 10, 2023
@andrewm659
Copy link

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

@exxrxxe
Copy link

exxrxxe commented May 25, 2024

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

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

5 participants