Skip to content
Discussion options

You must be logged in to vote

Hi,

Based on the logs, authentication appears to succeed initially ("Successfully signed in"), but subsequent Codespaces API requests are returning 401 Unauthorized and 403 Forbidden responses.

A few things I would check:

  1. Sign out of GitHub in VS Code and sign back in.

Sometimes the VS Code authentication token becomes stale even though the extension reports a successful sign-in.

  1. Remove and re-authorize the GitHub authentication provider.

In VS Code:

  • Accounts → Sign Out
  • Reload VS Code
  • Sign in again
  1. Verify that the account signed into VS Code is the same account that owns or has access to the Codespace.

  2. Check whether the Codespace can be opened successfully from the GitHub web in…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jeremymeng
Comment options

Answer selected by jeremymeng
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform, source:ui Discussions created via Community GitHub templates
3 participants