Skip to content

fix(infinity-provider-bedrock): classify "unexpected error during processing" as transient - #124

Draft
shadaj wants to merge 1 commit into
mainfrom
sandbox-cfb54d5d-f060-4dd5-b26d-0a1ab95eb1d7
Draft

shadaj wants to merge 1 commit into
mainfrom
sandbox-cfb54d5d-f060-4dd5-b26d-0a1ab95eb1d7

Conversation

@shadaj

@shadaj shadaj commented Sep 17, 2026

Copy link
Copy Markdown
Member

The Bedrock error message "The system encountered an unexpected error
during processing. Try your request again." was falling through to
ErrorClass::Fatal because the existing heuristic in
classify_bedrock_error only matched the older wording "unexpected error
when processing the request". When the error arrives without a usable
service error code (e.g. a mid-stream event error), the message
heuristics are the only signal, so the request was never retried.

Add message heuristics for "unexpected error during processing" and
"try your request again" to the Transient branch.

…cessing" as transient

The Bedrock error message "The system encountered an unexpected error
during processing. Try your request again." was falling through to
ErrorClass::Fatal because the existing heuristic in
classify_bedrock_error only matched the older wording "unexpected error
when processing the request". When the error arrives without a usable
service error code (e.g. a mid-stream event error), the message
heuristics are the only signal, so the request was never retried.

Add message heuristics for "unexpected error during processing" and
"try your request again" to the Transient branch.

Co-authored-by: Infinity 🤖 <infinity@hydro.run>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 17, 2026

Copy link
Copy Markdown

Deploying infinity with  Cloudflare Pages  Cloudflare Pages

Latest commit: eb58ba3
Status: ✅  Deploy successful!
Preview URL: https://3fd87843.infinity-dc7.pages.dev
Branch Preview URL: https://sandbox-cfb54d5d-f060-4dd5-b.infinity-dc7.pages.dev

View logs

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