You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provider 520 errors surface as MessageAbortedError with no diagnostics (zero tokens, repeated retries) #9038
When a provider request fails with HTTP 520, OpenCode reports an unknown error, 520 (1000) and retries, but surfaces no actionable diagnostics. The session terminates with MessageAbortedError and zero token usage, making it difficult to determine whether the failure is due to provider outage, rate limiting, network issues, or internal cancellation.
Retries occur without additional context or classification of the failure
Expected Behavior
Clear indication of:
which provider/model failed
failure phase (pre-dispatch, connect, stream)
whether retrying is meaningful
Improved surfacing of upstream/provider-level errors when available
Environment
Provider: opencode
Model: minimax-m2.1-free
Mode: build
OS: WSL2 (Linux subsystem on Windows)
Reproducible across multiple retries
Impact
Opaque handling of provider-level 520 errors makes debugging availability, rate limits, or configuration issues difficult, especially when failures occur before any token usage.
Feel free to ignore if none of these address your specific case. However, they all relate to the broader issue of poor error diagnostics and retry mechanisms when provider requests fail.
Activity
github-actions commentedon Jan 17, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case. However, they all relate to the broader issue of poor error diagnostics and retry mechanisms when provider requests fail.
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.