Skip to content

fix: clean error handling — no tracebacks on validation; pyfly v26.06.104 (v26.6.11)#35

Merged
ancongui merged 1 commit into
mainfrom
fix/clean-errors-pyfly-26.06.104
Jun 15, 2026
Merged

fix: clean error handling — no tracebacks on validation; pyfly v26.06.104 (v26.6.11)#35
ancongui merged 1 commit into
mainfrom
fix/clean-errors-pyfly-26.06.104

Conversation

@ancongui

Copy link
Copy Markdown
Contributor

What

  • Worker: ExtractionWorker._process builds the typed request inside its try/except, so a malformed persisted schema_json/options_json is marked permanent_error and logged cleanly instead of dumping a raw traceback via the poll loop's logger.exception.
  • pyfly → v26.06.104 (latest released): framework-level clean error reporting — expected client/domain (4xx) errors log at WARNING without a stack trace (CQRS handlers + request log); the pyfly CLI prints Error: ... instead of a traceback (--debug/PYFLY_DEBUG restores it).

Verification

Gate green: ruff, ruff format, pyright (0 errors), unit suite 292 passed. pyfly pinned to tag=v26.06.104 (resolved commit a921a67), which is the latest pyfly release (release.yml succeeded).

Ships as v26.6.11.

….104 (clean errors)

- ExtractionWorker._process now reconstructs the typed request (_build_request)
  INSIDE the try/except, so an invalid stored schema/options is marked
  permanent_error and logged cleanly instead of escaping to the poll loop's
  logger.exception() (raw traceback).
- Upgrade pyfly to the latest released v26.06.104: expected 4xx errors log at
  WARNING without a stack trace (CQRS + request log), and the CLI prints clean
  one-line errors. Release v26.6.11.
@ancongui ancongui merged commit c424077 into main Jun 15, 2026
8 checks passed
@ancongui ancongui deleted the fix/clean-errors-pyfly-26.06.104 branch June 15, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant