Repository navigation
Commit 34e1897
authored
fix(files): report the status code when ingest-file fails (#225)
## Summary
- `FileClient.upload` now returns `Failed to complete file upload:
<status>` when the ingest step fails, matching the upload-URL failure
(`Failed to get upload URL: <status>`).
- Without the code, a caller cannot tell a rate-limited ingest (429)
from any other failure, so it cannot back off and retry. Seen in
production: a five-table load was refused at `ingest-file`, and the
caller's 429 retry never fired.
## Tier
Stable tier (`FileClient` facade): only the error string changes, adding
the status after the existing prefix. Callers that check `"Failed to
complete file upload" in error` keep matching. Patch release.
## Test plan
- [x] `just test-all`: 595 passed, 17 skipped; lint, format and
typecheck clean
- [x] `test_upload_update_fails` now asserts the exact message,
including the status
🤖 Generated with [Claude Code](https://claude.com/claude-code)2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
0 commit comments