title | intro | versions | type | topics | shortTitle | redirect_from | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Troubleshooting your connection to GitHub Codespaces |
Troubleshooting help for connecting to {% data variables.product.prodname_github_codespaces %}. |
|
reference |
|
Connection |
|
Codespaces are set to stop after 30 minutes without any activity. If you try to interact with a codespace after it has stopped, you may see a 503 service unavailable
error.
- If a Start button is shown in {% data variables.product.prodname_vscode %} or in your browser window, click Start to reconnect to the codespace.
- Reset your codespace by reloading the window. From the Command Palette in {% data variables.product.prodname_vscode %}, click Developer: Reload Window.
Sometimes you may not be able to access a codespace from your browser. If this happens, go to https://github.com/codespaces and try connecting to the codespace from that page.
- If the codespace is not listed on that page, check that you are the owner of the codespace you are trying to connect to. You can only open a codespace that you created.
- If the codespace is listed but you cannot connect from that page, check whether you can connect using a different browser.
Check that you have a stable internet connection and that your company network is not blocking the connection. If possible, check logging for rejected connections on your device.
If you see rejected connections, make sure the domains documented by the /meta
REST API endpoint are not blocked by your firewall. For more information, see AUTOTITLE.
To get the list of domains required by {% data variables.product.prodname_github_codespaces %}, execute the following command using {% data variables.product.prodname_cli %}:
gh api meta --jq .domains.codespaces
This is a transitional error. Wait for a few minutes and try again.
This indicates that something went wrong with authentication. Try clearing up your local storage and cookies and try again.
If you still can't connect and the message you're seeing isn't in this list, check the service availability of {% data variables.product.prodname_codespaces %} at githubstatus.com. If the {% data variables.product.prodname_codespaces %} service is available, {% data reusables.codespaces.contact-support %}
To be able to use a codespace in JupyterLab, you must ensure that your codespace has it installed. The default dev container image that's used by {% data variables.product.prodname_github_codespaces %} includes JupyterLab, but if you have customized your dev container configuration you will have to manually install JupyterLab.
If your codespace uses a Debian-based image, you can install JupyterLab in the dev container by adding the python
feature to your devcontainer.json
file, with the installJupyterlab
option set to true
. Otherwise, install it directly in your Dockerfile. For installation instructions, see Installation in the JupyterLab documentation.
For more information about the python
feature, see the README page in the devcontainers/features
repository. For more information about the devcontainer.json
file and the Dockerfile, see AUTOTITLE.
If you still cannot connect, {% data reusables.codespaces.contact-support %}
{% data variables.product.prodname_github_codespaces %} extension for {% data variables.product.prodname_vscode %} cannot connect
If you cannot connect to a codespace from {% data variables.product.prodname_vscode %} desktop, use the following troubleshooting steps.
- Check that you have the latest version of the {% data variables.product.prodname_github_codespaces %} extension installed. The extension is a preview release and frequent updates are released.
- In {% data variables.product.prodname_vscode %}, display the "Extensions" tab.
- Select the {% data variables.product.prodname_github_codespaces %} extension to display the extension's overview page.
- If an update is available, a button is shown, click Update to X.X.X to upgrade to the latest version.
- Check whether you are using the stable build of {% data variables.product.prodname_vscode %} or the {% data variables.product.prodname_vscode %} Insiders release (nightly updates). If you are using the insiders release, try installing the stable build.
- Make sure your company network is not blocking the connection.
- If you receive errors like
connect EACCES
,connect ECONNREFUSED
,getaddrinfo ENOTFOUND
, or other similar errors, your firewall is likely blocking connections to our connection service. To verify this, please visit this URL. If the request fails or you see no data, you likely need to work with your system administrator add*.visualstudio.com
to your firewall's IP allow list. - If you see the error
Tunnel service HTTPS certificate is invalid. This may be caused by the use of a self-signed certificate or a firewall intercepting the connection
it's likely that your firewall is doing TLS inspection and injecting a self-signed certificate which {% data variables.product.prodname_dotcom %} is not able to verify. To resolve this, your system administrator will either need to allow*.visualstudio.com
to bypass the inspection or install the root CA that the firewall is injecting on your local machine.
- If you receive errors like
If you still cannot connect, {% data reusables.codespaces.contact-support %}
If the codespace seems particularly slow or has latency issues, it is possible that it has been created in a region that is far from you. To resolve this, you can manually set your {% data variables.product.prodname_github_codespaces %} region.