Open
Bug 1897921
Opened 3 months ago
Updated 3 months ago
Catch UnicodeError when parsing request payloads
Categories
(Eliot :: General, defect, P3)
Eliot
General
Tracking
(Not tracked)
NEW
People
(Reporter: sven, Unassigned)
Details
Eliot catches JSONDecodeError
when parsing request payloads. There are a couple of UnicodeError
s in Sentry, which should probably be treated the same way as JSON errors: https://mozilla.sentry.io/issues/5348576657/?project=4504952027545600&project=6700119&project=6700123&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=14d&stream_index=2
Reporter | ||
Updated•3 months ago
|
Severity: -- → S4
Priority: -- → P3
Comment 1•3 months ago
|
||
UnicodeDecodeError: 'utf-32-be' codec can't decode byte 0x00 in position 23692: truncated data
File "falcon/app.py", line 365, in falcon.app.App.__call__
responder(req, resp, **params)
File "markus/main.py", line 515, in _timer_decorator
return fun(*args, **kwargs)
File "eliot/symbolicate_resource.py", line 684, in on_post
payload = _load_payload(req)
File "eliot/symbolicate_resource.py", line 577, in _load_payload
return json.load(req.bounded_stream)
File "__init__.py", line 293, in load
return loads(fp.read(),
File "__init__.py", line 341, in loads
s = s.decode(detect_encoding(s), 'surrogatepass')
File "encodings/utf_32_be.py", line 11, in decode
return codecs.utf_32_be_decode(input, errors, True)
https://mozilla.sentry.io/issues/5348576657/events/613bfb4009bd4f3294447d0a3f01171e/
You need to log in
before you can comment on or make changes to this bug.
Description
•