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

EUSB: Impossible to parse JSON #15

Open
GitHubAIH opened this issue Jul 10, 2024 · 5 comments
Open

EUSB: Impossible to parse JSON #15

GitHubAIH opened this issue Jul 10, 2024 · 5 comments

Comments

@GitHubAIH
Copy link

Domoticz gives this error:

2024-07-10 22:22:00.359 Error: EUSB: Impossible to parse JSON (buffer size 327713). Traceback (most recent call last): File "/home/domo_user/domoticz/plugins/ebusd/plugin.py", line 342, in parseJson dJson = json.loads(sData, object_pairs_hook= lambda dict: CaseInsensitiveDict(dict)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/json/init.py", line 359, in loads return cls(**kw).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 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Invalid control character at: line 7154 column 19 (char 327595)

@guillaumezin
Copy link
Owner

Hello,
What do you see if you go to http://yourebusurl:httpportconfiguredinEBUSD_OPTS ? Can you post it?

@guillaumezin
Copy link
Owner

Ok, forget it, I have the same problem, probably related to ebusd version, I upgraded it a few days ago, I will dig a bit

@GitHubAIH
Copy link
Author

It's indeed Ebusd bug:

json error

@guillaumezin
Copy link
Owner

guillaumezin commented Jul 11, 2024

The bug is in ebusd:
john30/ebusd#1304
Please add --updatecheck=off to EBUSD_OPTS or EBUSD_UPDATECHECK=off to your docker-compose.yml file as long as upstream bug is not fixed

@guillaumezin
Copy link
Owner

guillaumezin commented Jul 11, 2024

This is fixed upstream, should be ok in next version of ebusd.

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

2 participants