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

Can't extract or decode #28

Open
PaeseSono opened this issue Sep 10, 2018 · 2 comments
Open

Can't extract or decode #28

PaeseSono opened this issue Sep 10, 2018 · 2 comments

Comments

@PaeseSono
Copy link

I am getting this error while trying to get the code, it works before but not now anymore. Cant seems to understand whats the error code means, need some help here.

Here is the error Im getting

Traceback (most recent call last): File "getBroadlinkSharedData.py", line 65, in <module> jsonIrCodeData = json.loads(jsonIrCode) File "/home/ubuntu/.local/lib/python2.7/site-packages/simplejson/__init__.py", line 518, in loads return _default_decoder.decode(s) File "/home/ubuntu/.local/lib/python2.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/home/ubuntu/.local/lib/python2.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting ',' delimiter or ']': line 1 column 16235 (char 16234)

@spaceSquid
Copy link

same here...
Traceback (most recent call last):
File "getBroadlinkSharedData.py", line 65, in
jsonIrCodeData = json.loads(jsonIrCode)
File "/usr/lib/python2.7/site-packages/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python2.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
File "/usr/lib/python2.7/site-packages/simplejson/scanner.py", line 79, in scan_once
return _scan_once(string, idx)
File "/usr/lib/python2.7/site-packages/simplejson/scanner.py", line 47, in _scan_once
return parse_array((string, idx + 1), _scan_once)
File "/usr/lib/python2.7/site-packages/simplejson/decoder.py", line 250, in JSONArray
value, end = scan_once(s, end)
File "/usr/lib/python2.7/site-packages/simplejson/scanner.py", line 45, in _scan_once
_scan_once, object_hook, object_pairs_hook, memo)
File "/usr/lib/python2.7/site-packages/simplejson/decoder.py", line 194, in JSONObject
value, end = scan_once(s, end)
File "/usr/lib/python2.7/site-packages/simplejson/scanner.py", line 47, in _scan_once
return parse_array((string, idx + 1), _scan_once)
File "/usr/lib/python2.7/site-packages/simplejson/decoder.py", line 260, in JSONArray
raise JSONDecodeError("Expecting ',' delimiter or ']'", s, end - 1)
simplejson.errors.JSONDecodeError: Expecting ',' delimiter or ']': line 1 column 9991 (char 9990)
/usr/local/dr # python
Python 2.7.15 (default, Aug 16 2018, 14:17:09)

@spaceSquid
Copy link

This for me appeared to be an issue with the Json in jsonIrCode... on inspection the json wasn't complete. I went back to the app, shared the info again, grabbed the file and all's working.

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