Skip to content

[Bug]: Forbidden response from provider does not trigger fallback #511

@hermanmak

Description

@hermanmak

What happened, and what did you expect?

The plugin fails to recover if the model provider responds with

Forbidden: request was blocked by a gateway or proxy. You may not have permission to access this resource — check your account and provider settings.

But does correctly fallsback with a "limit exceeded" type error

I guess the right behaviour is to support fallback through the chain for each agent inclusive of Forbidden: request was blocked by a gateway or proxy. You may not have permission to access this resource — check your account and provider settings.

Steps to reproduce

  1. Run any query
  2. Receive Forbidden: request was blocked by a gateway or proxy. You may not have permission to access this resource — check your account and provider settings.

oh-my-opencode.json

OpenCode version

No response

oh-my-opencode-slim version

No response

Operating system

No response

Logs, screenshots, or extra context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions