Skip to content

401 AuthError: Request blocked by upstream provider #38195

Closed as duplicate
Closed as duplicate

Description

@faustkuroki

Description

Hi! I'm having an issue with OpenCode Go.

My Go subscription is active, but all Go subscription models return:

401 AuthError: Request blocked by upstream provider

Free models work normally.

The issue reproduces in both OpenCode Desktop and Hermes, on multiple machines (Windows and VPS), so it doesn't seem to be a local configuration issue.

Is this a known issue, or could there be a problem with my account/subscription state?

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Jul 21, 2026

    @github-actions
    Contributor

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

    If your issue is the same, please add your details there instead to help consolidate reports.

  2. caozhongran commented on Jul 22, 2026

    @caozhongran

    同样问题

  3. caozhongran commented on Jul 22, 2026

    @caozhongran

    root@iZufZ:~# opencode run 测试

    build · glm-5.2

    Error: Request blocked by upstream provider.

  4. qqx1024 commented on Jul 22, 2026

    @qqx1024

    同样的问题

  5. gopalkalaleat-sudo commented on Jul 22, 2026

    @gopalkalaleat-sudo

    同样的问题

  6. VirtualHotBar commented on Jul 22, 2026

    @VirtualHotBar

    Me too.

  7. mariree commented on Jul 22, 2026

    @mariree

    同样的问题

  8. angellfear commented on Jul 22, 2026

    @angellfear
  9. rick13795 commented on Jul 22, 2026

    @rick13795

    +1

  10. Demitry0-0 commented on Jul 22, 2026

    @Demitry0-0

    ++

  11. RogerPaladin commented on Jul 22, 2026

    @RogerPaladin

    Same

    Req

    curl -X POST \
      'https://opencode.ai/zen/go/v1/chat/completions' \
      -H 'Accept: text/event-stream' \
      -H 'Content-Type: application/json' \
      -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0' \
      -H 'Authorization: Bearer Token' \
      -d '{
        "model": "deepseek-v4-flash",
        "messages": [
          {
            "role": "user",
            "content": "Hello"
          }
        ],
        "stream": true,
        "stream_options": {
          "include_usage": true
        }
      }'
    

    Resp:

    401
    {
      "type": "error",
      "error": {
        "type": "AuthError",
        "message": "Request blocked by upstream provider."
      }
    }
    
  12. sprkldv commented on Jul 22, 2026

    @sprkldv

    +1

  13. Zheng-Zong commented on Jul 22, 2026

    @Zheng-Zong

    +1

  14. gecgecge commented on Jul 22, 2026

    @gecgecge

    +1

  15. h2ranger72-creator commented on Jul 22, 2026

    @h2ranger72-creator

    +1

  16. IngaVesnova commented on Jul 23, 2026

    @IngaVesnova

    Me too

  17. luotianyiismywife commented on Jul 23, 2026

    @luotianyiismywife

    +1

  18. lerothias commented on Jul 23, 2026

    @lerothias

    +1

  19. thodstein commented on Jul 23, 2026

    @thodstein

    +1

  20. Sam404s commented on Jul 24, 2026

    @Sam404s

    Image 恼火 还不行

  21. NicolasGarciaRamirez commented on Jul 24, 2026

    @NicolasGarciaRamirez

    ++

  22. escrowkid commented on Jul 27, 2026

    @escrowkid

    Is this error fixed or not? i also getting the same response man

    Image
  23. IngaVesnova commented on Jul 28, 2026

    @IngaVesnova

    Is this error fixed or not? i also getting the same response man

    Image

    No, the error has not been fixed. I still have half of the paid monthly limit left. My subscription ends in a week, but I can't use it because of an error.

  24. Sanjay-doppalapudi commented on Aug 6, 2026

    @Sanjay-doppalapudi

    Root cause traced to source in #38218 (comment) — short version: this string is thrown by the workspace.isBlocked check in packages/console/app/src/routes/zen/util/handler.ts (added in c40e3e7, 2026-07-21). No upstream provider is contacted; the request is refused at opencode's edge (~114 ms, same latency as the local invalid-key path), and the same models answer anonymously in the same second. Key rotation, cache clearing, and re-login cannot help. #40944 proposes a distinct error message for this case so it stops presenting as a vendor outage.

  25. VovanSSS commented on Aug 23, 2026

    @VovanSSS

    same problem

    Image
  26. neriousy commented on Oct 1, 2026

    @neriousy
    Member

    Closing as a duplicate of #38218. Same "Request blocked by upstream provider" 401. This error comes from OpenCode's own gateway (a blocked workspace), not from an upstream provider. Account unblocks and refunds are handled per workspace, so please contact support (help@anoma.ly) with your workspace ID.

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