mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-08-10 17:46:48 +00:00
Unsupported files used to enqueue a background job that failed and then burned the full 15-attempt retry budget (~1h) before showing a generic "Failed" with no actionable detail. - Add a pre-flight `_assert_file_supported()` using content-core 2.x's header-only `check_file_support()` (same routing as real extraction) in the upload branch of `_build_content_state`, before any job is enqueued and before the source record is created. - Guard the source-retry endpoint the same way. Unexpected check errors (e.g. file removed before a retry) fall through to normal extraction. - Map `UnsupportedTypeException` to `415 Unsupported Media Type` via a dedicated global handler (previously fell through to the base OpenNotebookError handler's 500). The message names the detected type. Part of #939. |
||
|---|---|---|
| .. | ||
| routers | ||
| __init__.py | ||
| AGENTS.md | ||
| auth.py | ||
| CLAUDE.md | ||
| command_service.py | ||
| credentials_service.py | ||
| main.py | ||
| middleware.py | ||
| models.py | ||
| podcast_service.py | ||