Skip to content

fix(rest): pass upstream 4xx through /v1/infer instead of 502 - #11

Merged
ronaldtse merged 1 commit into
mainfrom
fix/infer-error-mapping
Aug 28, 2026
Merged

fix(rest): pass upstream 4xx through /v1/infer instead of 502#11
ronaldtse merged 1 commit into
mainfrom
fix/infer-error-mapping

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

The /v1/infer proxy collapsed every upstream failure into 502
inference_upstream. Requests the upstream legitimately rejects -
task not served (khm-latn translit), oversized input - now surface
with their real status and detail as inference_rejected; transport
failures stay 502. TDD: fetch-stubbed test asserts 400 passes
through. 26/26.

"task not served" / bad-input rejections from the inference upstream
returned as generic 502 inference_upstream; now 4xx status + detail
pass through as inference_rejected.
@ronaldtse
ronaldtse merged commit 6c1b2f9 into main Aug 28, 2026
4 of 5 checks passed
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