Skip to content

Bug: Error: invalid_scope: Invalid OAuth scope or ID token audience provided.. when using GLM models with Google Vertex #20202

Closed as not planned

Description

@SOUMITRO-SAHA

Description

When using GLM models through the Google Vertex provider, users get this error:
Error: invalid_scope: Invalid OAuth scope or ID token audience provided.

This happens because the Google Vertex provider doesn't tell Google which permissions it needs. When it tries to connect to Vertex AI, Google blocks the request because no scopes were specified.

Plugins

None

OpenCode version

1.2.27

Steps to reproduce

  1. Configure the Google Vertex provider in opencode
  2. Try to use a GLM model like glm-4.7 or glm-5 (vertex)
  3. The request fails with Error: invalid_scope: Invalid OAuth scope or ID token audience provided.

Screenshot and/or share link

Image Image

Operating System

MacOS 26.3.1

Terminal

vscode, zed, ghostty

Activity

  1. added
    bug
    on Mar 31, 2026
  2. added
    core
    on Mar 31, 2026
  3. github-actions commented on Mar 31, 2026

    @github-actions
    Contributor

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

  4. removed
    bug
    core
    on May 3, 2026
  5. github-actions commented on Jul 4, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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