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

UnicodeDecodeError not caught #9

Open
chrishannam opened this issue Sep 13, 2020 · 0 comments
Open

UnicodeDecodeError not caught #9

chrishannam opened this issue Sep 13, 2020 · 0 comments

Comments

@chrishannam
Copy link
Owner

 $ /home/channam/.local/bin/jocasta -p /dev/ttyUSB0
Traceback (most recent call last):
  File "/home/channam/.local/bin/jocasta", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/channam/.local/lib/python3.7/site-packages/jocasta/collector.py", line 50, in main
    reading = sensor_reader.read()
  File "/home/channam/.local/lib/python3.7/site-packages/jocasta/inputs/serial_connector.py", line 65, in read
    return json.loads(raw_serial)
  File "/usr/lib/python3.7/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfb in position 0: invalid start byte
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