You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 26, 2024. It is now read-only.
Sometimes I am getting the error UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd8 in position 221: invalid continuation byte and the script fatally exits. Would be great to make this error non-fatal, maybe by using try/expect or something.
Jan 23 17:12:55 twlz python3[1573471]: Udp started: 127.0.0.1:8008
Jan 23 17:12:55 twlz python3[1573471]: INFINITE LOOP; ^C WILL MOST LIKELY NOT WORK!
Jan 23 17:12:55 twlz python3[1573471]: Traceback (most recent call last):
Jan 23 17:12:55 twlz python3[1573471]: File "/home/svends/gsdddoss.py", line 101, in <module>
Jan 23 17:12:55 twlz python3[1573471]: for data in udp_server():
Jan 23 17:12:55 twlz python3[1573471]: File "/home/svends/gsdddoss.py", line 99, in udp_server
Jan 23 17:12:55 twlz python3[1573471]: yield data[4:-1].decode("utf-8") # has garbag header + ending
Jan 23 17:12:55 twlz python3[1573471]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd8 in position 221: invalid continuation byte
Jan 23 17:12:55 twlz systemd[1]: gsdddoss.service: Main process exited, code=exited, status=1/FAILURE
Jan 23 17:12:55 twlz systemd[1]: gsdddoss.service: Failed with result 'exit-code'.
Jan 23 17:13:00 twlz systemd[1]: gsdddoss.service: Scheduled restart job, restart counter is at 82.
Jan 23 17:13:00 twlz systemd[1]: Stopped gsdddoss.
Jan 23 17:13:00 twlz systemd[1]: Started gsdddoss.
Sometimes I am getting the error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd8 in position 221: invalid continuation byteand the script fatally exits. Would be great to make this error non-fatal, maybe by using try/expect or something.Additional infos:
Linux,Python 3.10.9,