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: (EBusD) Impossible to parse JSON (buffer size 30122) #8

Closed
david-ge opened this issue Mar 30, 2020 · 3 comments
Closed

Error: (EBusD) Impossible to parse JSON (buffer size 30122) #8

david-ge opened this issue Mar 30, 2020 · 3 comments

Comments

@david-ge
Copy link

Hello,

I am facing similar issues like #7 :

2020-03-30 11:50:12.004 Error: (EBusD) Impossible to parse JSON (buffer size 30122). Traceback (most recent call last):
2020-03-30 11:50:12.004 File "/opt/domoticz/plugins/ebus/plugin.py", line 380, in parseJson
2020-03-30 11:50:12.004 dJson = json.loads(sData, object_pairs_hook= lambda dict: CaseInsensitiveDict(dict))
2020-03-30 11:50:12.004 File "/usr/lib/python3.7/json/__init__.py", line 361, in loads
2020-03-30 11:50:12.004 return cls(**kw).decode(s)
2020-03-30 11:50:12.004 File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
2020-03-30 11:50:12.004 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
2020-03-30 11:50:12.004 File "/usr/lib/python3.7/json/decoder.py", line 353, in raw_decode
2020-03-30 11:50:12.004 obj, end = self.scan_once(s, idx)
2020-03-30 11:50:12.004 json.decoder.JSONDecodeError: Expecting ',' delimiter: line 181 column 86 (char 7888) 

ebusd version: 3.4.v3.4-14-gfb32960
Domoticz version: 2020.1
dzVents Version: 3.0.1
Python Version: 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0]

Let me know, if you need the complete JSON or any other information.

Can you help me?

Regards,
David

@guillaumezin
Copy link
Owner

Hello,

Can you open http://ipofyourebusdevice:8889/data?def&write (8889 being the JSON HTTP port, change it if needed), put the result in a file and post the file as attachement here?

@david-ge
Copy link
Author

Sure, please, check the attachment. But you are on a good way - Firefox gives me:

SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 181 column 86 of the JSON data
So, the JSON is probably corrupted by ebusd.

data.zip

@david-ge
Copy link
Author

Hello again,

thanks a lot for pushing me to the right direction. Problem found in one of the ebusd configuration CSVs. Corrected and working as expected.

Thank you!

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