Skip to content

Go: deepseek-v4.1-flash returns 429 Endpoint is unavailable while other Go models succeed #57613

Closed as not planned

Description

@hanukkah1

Description

Requests to deepseek-v4.1-flash on the OpenCode Go endpoint fail with

HTTP 429
{"error":{"type":"server_error","message":"Upstream request failed: Endpoint is unavailable."}}

while other Go models return 200 on the same API key, same endpoint, in the same minute.

This lines up with the open incident on status.opencode.ai ("Upstream provider issues — Go: deepseek-v4-pro and deepseek-v4.1-flash are seeing increased error rates", started Oct 20 23:44 UTC), but for this workspace the failures started earlier and are still happening now. deepseek-v4-pro returns 503 with the same body.

Control matrix

2026-10-21T02:47Z, one Go key, endpoint https://opencode.ai/zen/go/v1/chat/completions, requests issued back-to-back, all carrying x-opencode-session:

model attempt HTTP x-opencode-log-id
deepseek-v4.1-flash 1 429 01a15c5b-2540-7917-84d2-80df4fc4fab0
deepseek-v4.1-flash 2 429 01a15c5b-27d8-71f9-ab7e-008307fdc82e
glm-5.3 1 200 01a15c5b-2a4a-7c41-a486-f149cedf4d96
glm-5.3 2 200 01a15c5b-2dec-7e56-a6cd-a4b19d1ff8eb
kimi-k2.7-code 1 200 01a15c5b-311f-76d2-bc97-a976470f03bd
kimi-k2.7-code 2 200 01a15c5b-3665-7ab7-8bb3-50b002cfdb88
minimax-m3.1-flash-free 1 200 01a15c5b-418e-7d6e-9544-ee4a6f870717
minimax-m3.1-flash-free 2 200 01a15c5b-4655-76f1-ae6f-58a14449dd7e

Minimal body used:

{"model":"<model id>","messages":[{"role":"user","content":"hi"}],"max_tokens":8}

Earlier in the same window deepseek-v4.1-flash alternated inconsistently (429, then 200, then 200) for identical requests, which is what makes it hard to work around at the client level.

Steps to reproduce

  1. Use a Go key whose workspace has an active subscription and region set to Global.
  2. POST /zen/go/v1/chat/completions with "model": "deepseek-v4.1-flash" and a minimal body.
  3. Observe 429 / 503 Upstream request failed: Endpoint is unavailable.
  4. Repeat with glm-5.3, kimi-k2.7-code or minimax-m3.1-flash-free seconds later — all return 200.

Environment

  • Client: Hermes Agent v0.21.7+132.gf594424 (sends a stable x-opencode-session per conversation; includes PR #101864)
  • Endpoint: https://opencode.ai/zen/go/v1/chat/completions
  • Wire format: chat_completions
  • Workspace region: Global
  • OS: server Ubuntu 22.04, client Windows 11
  • Terminal: OrcaTerm
  • OpenCode version: N/A (not an OpenCode client)

Impact

Every agent turn fails on the primary model. Since 2026-10-20T17:24Z, six scheduled runs in this workspace failed at this step. Workaround is pinning a non-DeepSeek model, which loses the DeepSeek quota the plan is priced around.

Questions

  1. Is a healthy upstream endpoint currently configured for the deepseek-v4.1-flash chat/completions route? The error carries an x-opencode-log-id but no x-opencode-endpoint-id, which in Zen Go: /v1/responses 503 'Endpoint is unavailable' sticks to a single conversation and never recovers (deepseek-flash, Codex client) #53120 was the signature of the gateway giving up before an endpoint served the request.
  2. Zen Go: /v1/responses 503 'Endpoint is unavailable' sticks to a single conversation and never recovers (deepseek-flash, Codex client) #53120 describes per-conversation sticky provider binding (stickyId = sessionId ?? workspaceID ?? ip) that is only written on success. If this workspace got bound to a dead endpoint, can that binding be reset server-side, or does it expire on its own?
  3. Given the status page reports monitoring data as missing on and off, is there a better signal we can watch than the public status page?

Happy to provide the full request/response dumps or more log ids if useful.

Activity

  1. opencode-agent commented on Oct 21, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed report and the log IDs. It looks like deepseek-v4.1-flash (and deepseek-v4-pro) on OpenCode Go keep failing for your workspace while other Go models work, and that this matches the current upstream incident on the status page.

    This is a problem with the hosted OpenCode Go service, not the OpenCode app, and support for Go, Zen and account issues isn't handled in GitHub issues. Please email [email protected] with the details: the failing model, the time window, the x-opencode-log-id values you listed, and your questions about endpoint health and resetting the sticky binding. If you've already emailed, the team will get to it, especially now that we've seen it here. Please keep your API key, account email and other account details out of this public issue and put them only in the email.

    Related reports, in case they're useful:

    The bot will close this issue in 1 day.

  2. going358 commented on Oct 21, 2026

    @going358

    Additional Codex /v1/responses evidence from Windows 11:

    • Client: Codex CLI 0.163.0-alpha.10.2 through a local passthrough proxy
    • Failure time: 2026-10-21 07:06:16 UTC
    • HTTP status: 429 Too Many Requests
    • cf-ray: a4de6b1b5fe6562b-EWR
    • x-opencode-log-id: 01a15d48-3406-791b-961a-98cba3262791
    • x-opencode-endpoint-id: absent
    • Response body: {"error":{"type":"server_error","message":"Upstream request failed: Endpoint is unavailable."}}

    The client made three bounded attempts over roughly 39 seconds and consistently received the same body. This falls inside the Go elevated-error window reported on the status page from 06:46–09:57 UTC.

    Could you confirm whether this signature indicates a stale per-conversation sticky binding or endpoint-pool failure, and whether transient 429 responses of this form should carry Retry-After for Codex clients? I am not posting account identifiers or request content.

  3. neriousy commented on Oct 21, 2026

    @neriousy
    Member

    Thanks for the report, and sorry for the disruption. This was a temporary problem with the hosted service or an upstream model provider, and it has since recovered. You can see live status and past incidents at https://status.opencode.ai. If you still see this now, please open a new issue with the time (with timezone), model, and request ID from the console logs.

  4. opencode-agent commented on Oct 22, 2026

    @opencode-agent
    Contributor

    Hi @hanukkah1, I'm closing this issue now because problems with the OpenCode Go service and accounts are handled by email, not on GitHub. If deepseek-v4.1-flash or deepseek-v4-pro still fails for your workspace, please email [email protected] with the model, the time window and the x-opencode-log-id values. Please keep your API key and account details out of public issues and send them only by email. Thanks again for the detailed report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions