Skip to content

OpenCode Go: union-alpha fails with 503 'Upstream request failed: Endpoint is unavailable' on tool calls #49413

Closed as not planned

Description

@herbertnikolajewskidci

Description

When using opencode-go/union-alpha, plain prompt requests (without tools) work as expected, but any turn that involves tool calling (e.g. read, write, bash) consistently triggers a 503 Service Unavailable from the provider gateway:

{"type":"error","error":{"type":"api_error","message":"Error from provider (Console Go): Upstream request failed: Endpoint is unavailable."}}

Steps to Reproduce

Tested on OpenCode 1.18.31 (and third-party agents like Pi):

  1. Run plain prompt (succeeds):
curl -s -H "x-api-key: $OPENCODE_GO_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "x-opencode-session: session-test" \
  -H "content-type: application/json" \
  https://opencode.ai/zen/go/v1/messages \
  -d '{"model": "union-alpha", "max_tokens": 50, "messages": [{"role": "user", "content": "Hi"}]}'
# Returns 200 OK
  1. Run request with tools attached or via CLI:
opencode run --model opencode-go/union-alpha "Create a test file test.txt and read it back"

Actual output:

← Write test.txt
Wrote file successfully.
Error: Error from provider (Console Go): Upstream request failed: Endpoint is unavailable.

Environment

Activity

  1. github-actions commented on Sep 16, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is distinct (e.g. specifically affects union-alpha with tool calls in a way not covered by the above), please add clarifying details.

  2. herbertnikolajewskidci commented on Sep 16, 2026

    @herbertnikolajewskidci
    Author

    Clarification regarding the bot flags:

  3. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions