[New-bugs-announce] [issue37331] logging.handlers.DatagramHandler sends bad data to socketserver.DatagramRequestHandler
Yoong Hor Meng
report at bugs.python.org
Tue Jun 18 15:37:02 EDT 2019
New submission from Yoong Hor Meng <yoonghm at gmail.com>:
`pysyslog.py`
- A UDP server listens at 0.0.0.0:514 for syslog messages.
`syslogmsg_gen.py`
- Send syslog message to local syslog server via 127.0.0.1:514
Error:
Exception has occurred: UnicodeDecodeError
'utf-8' codec can't decode byte 0xd7 in position 381: invalid continuation byte
File "C:\pysyslog.py", line 21, in handle
data = self.request[0].decode('utf-8')
File "C:\pysyslog.py", line 28, in <module>
server.serve_forever(poll_interval=0.5)
----------
components: Library (Lib)
files: attachment.md
messages: 346005
nosy: yoonghm
priority: normal
severity: normal
status: open
title: logging.handlers.DatagramHandler sends bad data to socketserver.DatagramRequestHandler
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48426/attachment.md
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37331>
_______________________________________
More information about the New-bugs-announce
mailing list