-
Notifications
You must be signed in to change notification settings - Fork 728
Description
- 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
- Authenticate with GitHub in VS Code.
- Use any GitHub-related extension (e.g., GitHub Pull Requests, GitHub Codespaces, GitHub Repositories) over an extended session.
- At some point, API calls begin failing with a
Bad credentialserror (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
- Sign out of GitHub in VS Code.
- Fully close VS Code.
- 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.