Skip to content

Bad Credentials #8603

@Nyximus

Description

@Nyximus
  • Extension version: 0.132.1
  • VSCode Version: 1.111.0
  • OS: macOS 15.7.4
  • Repository Clone Configuration: N/A
  • GitHub Product: GitHub.com

Steps to Reproduce

  1. Authenticate with GitHub in VS Code.
  2. Use any GitHub-related extension (e.g., GitHub Pull Requests, GitHub Codespaces, GitHub Repositories) over an extended session.
  3. At some point, API calls begin failing with a Bad credentials error (see below).

Expected Behavior

The extension should automatically detect expired or invalid credentials and prompt re-authentication, similar to how the GitHub Actions extension handles this scenario.

Actual Behavior

API calls fail with the following error:

Bad credentials - https://docs.github.com/rest

The error occurs intermittently and affects multiple GitHub-verified extensions (Pull Requests, Codespaces, Repositories) — but notably not GitHub Actions, which correctly detects stale credentials and prompts to re-authenticate.

Workaround

  1. Sign out of GitHub in VS Code.
  2. Fully close VS Code.
  3. Reopen VS Code and sign back in.

Additional Context

This appears to be a duplicate of #3022. The underlying issue seems to be that the shared GitHub authentication token expires or is invalidated, but the affected extensions do not handle this gracefully — they continue using the stale token instead of triggering a re-authentication flow.

Metadata

Metadata

Assignees

No one assigned

    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