Python Traceback Parser
Parse Python tracebacks into structured frames with chained exception handling.
json.decoder.JSONDecodeErrorExpecting value: line 1 column 1 (char 0)
| File | Line | Function | Source |
|---|---|---|---|
| /app/server.py | 42 | handle_request | payload = json.loads(body) |
| /usr/lib/python3.12/json/__init__.py | 346 | loads | return _default_decoder.decode(s) |
| /usr/lib/python3.12/json/decoder.py | 337 | decode | obj, end = self.raw_decode(s, idx=_w(s, 0).end()) |
↑ during handling of
app.errors.BadRequestErrorinvalid body
| File | Line | Function | Source |
|---|---|---|---|
| /app/server.py | 50 | handle_request | raise 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
- .gitignore BuilderPick languages, frameworks, build tools, editors and OS — get a deduped .gitignore.
- JS / Node Stack Trace ParserParse V8 and Firefox stack traces into structured frames — function, file, line, column.
- JSON → Code ObjectRender a JSON sample as a literal in JS, TS, Python, PHP, Ruby, Go, Rust, and Java side by side.
- pyproject.toml ParserParse Python pyproject.toml — project metadata, dependencies, optional groups, build system, tool sections.