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

JSON Decoder error #75

Open
miguelcarcamov opened this issue Aug 17, 2023 · 0 comments
Open

JSON Decoder error #75

miguelcarcamov opened this issue Aug 17, 2023 · 0 comments

Comments

@miguelcarcamov
Copy link

Hi,
From some days ago I have been receiving an error after running razer-cli -e multicolor,xpalette --sync.
The error that shows up is:

Traceback (most recent call last):
  File "/home/miguel/.local/bin/razer-cli", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/miguel/.local/lib/python3.11/site-packages/razer_cli/razer_cli/main.py", line 30, in main
    rc.run()
  File "/home/miguel/.local/lib/python3.11/site-packages/razer_cli/razer_cli/rc.py", line 55, in run
    self.color_effect_handler.handle()
  File "/home/miguel/.local/lib/python3.11/site-packages/razer_cli/razer_cli/handler/color_effect_handler.py", line 31, in handle
    self.setter.set(effects=effects, color=color, zones=zones)
  File "/home/miguel/.local/lib/python3.11/site-packages/razer_cli/razer_cli/setter/color_effect_setter.py", line 21, in set
    self.set_effect_to_device(device, **kwargs)
  File "/home/miguel/.local/lib/python3.11/site-packages/razer_cli/razer_cli/setter/color_effect_setter.py", line 273, in set_effect_to_device
    util.write_settings_to_file(device, effects, color, zones=zones)
  File "/home/miguel/.local/lib/python3.11/site-packages/razer_cli/razer_cli/util.py", line 190, in write_settings_to_file
    json_data = json.load(file)
                ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/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)

I'm trying to debug the error without any success. I'm on Manjaro Linux x86_64 with kernel 6.5.0-1-MANJARO

Cheers,

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