Skip to content
BEAD

Python Traceback Parser

Parse Python tracebacks into structured frames with chained exception handling.

json.decoder.JSONDecodeErrorExpecting value: line 1 column 1 (char 0)
FileLineFunctionSource
/app/server.py42handle_requestpayload = json.loads(body)
/usr/lib/python3.12/json/__init__.py346loadsreturn _default_decoder.decode(s)
/usr/lib/python3.12/json/decoder.py337decodeobj, end = self.raw_decode(s, idx=_w(s, 0).end())
↑ during handling of
app.errors.BadRequestErrorinvalid body
FileLineFunctionSource
/app/server.py50handle_requestraise BadRequestError("invalid body") from e

What it understands

  • Standard Traceback (most recent call last): header
  • Multi-frame call stacks with optional source-line context
  • Final exception line — type, optional module, message
  • Chained exceptions — “During handling of the above…” / “The above exception was the direct cause…”

You might also like

Used in these workflows