GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — server_is_overloaded stream errors wrapped in Error are not retried · Issue #26129 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionSummaryThis is a follow-up to #25888. #25888 added However, there is still another real failure path where the same provider payload is wrapped in an {
"type": "error",
"sequence_number": 2,
"error": {
"type": "service_unavailable_error",
"code": "server_is_overloaded",
"message": "Our servers are currently overloaded. Please try again later.",
"param": null
}
}When this payload is surfaced as Problem observedWe observed failed assistant messages where OpenAI returned a stream error with:
This is a transient provider overload condition and should be retryable. But in the wrapped Current flow: case e instanceof Error: return new NamedError.Unknown({ message: errorMessage(e) }, { cause: e }).toObject() default: const parsed = ProviderError.parseStreamError(e) As a result:
Why the latest code is still insufficientThe latest code already includes #25888, which added this in case "server_is_overloaded": case "server_error": return { type: "api_error", isRetryable: true, ... } That fix works only if the payload reaches It does not cover the There is also a second gap in {
"type": "error",
"error": {
"type": "service_unavailable_error",
"code": "server_is_overloaded"
}
}So even if such an error has already been persisted as an Expected behaviorOpenAI/Codex stream errors with nested overload codes should be retried when they are surfaced either as:
Suggested fixA narrow fix would be:
Local verificationI tested a local patch with regression coverage for the wrapped stream error path: bun test --timeout 30000 test/session/retry.test.ts
bun run typecheckBoth passed locally. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |