microsoft / microsoft/vscode-remote-release

VSCode Tunnel expires after 24 hours and have an error on refreshing the token.

Open
#11,207 18 comments 6 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since Sep 17, 2025.

bug tunnels
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

I am getting every 24 hours this error:

Right now every 24 hours I am getting this issue: [2025-09-17 15:02:56] info error refreshing token: error requesting https://api.github.com/user: 401 {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest","status":"401"} I am having issues with my remote tunnel and I started like this code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}

  • VSCode Version:
  • Local OS Version:
  • Remote OS Version:
  • Remote Extension/Connection Type: Dev Containers/WSL/Remote - Tunnels/VS Code Server
  • Logs:

Steps to Reproduce:

  1. Create a remote tunnel and logging with github
  2. The tunnel failed to update the refresh token

It was working perfectly, I suggest to add a headless way to create this tunnel with github authentication

This is a very bad issue for me, I will give a talk on Saturday about how to use this vscode tunnels and I can not show this failing please take this as an priority bug.

Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.