question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: terminal not working when your web base_path is not /

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Windows, Ubuntu
  • Remote OS: Ubuntu
  • Remote Architecture: x86
  • code-server --version: 4.5.0 02b9d7ee856e31d9008d1ff24a175ff03b49010e with Code 1.68.1

Steps to Reproduce

  1. use k8s ingress, set code server base path to /ide/
  2. open ${your-code-server-host}/ide/
  3. ctrl + J open terminal

Expected

show terminal

Actual

No terminal created.

open chrome dev Terminal, you will see some errors like this:

    
    Failed to load resource: the server responded with a status of 503 (Service Unavailable)
    /stable-30d9c6cd9483b2cc586687151bcbcd635f373630/static/out/vs/workbench/services/keybinding/browser/keyboardLayouts/layout.contribution.win.js:1

but the root path of ide is /ide/ , not /

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

If your root path is /, terminal will open correctly.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
benz0licommented, Jul 7, 2022
3reactions
k9licommented, Jul 7, 2022

same issue,and python extension fails to activate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring.data.rest.basePath is not applied - Stack Overflow
All of the server.* properties that Spring Boot supports only apply to the configuration of the embedded servlet container (Tomcat, Jetty, ...
Read more >
ttyd - Share your terminal over the web - GitHub Pages
ttyd is a simple command-line tool for sharing terminal over the web. ... --readonly Do not allow clients to write to the TTY...
Read more >
Settings Reference for Python - Visual Studio Code
Python settings reference. The Python Extension for Visual Studio Code is highly configurable. This page describes the key settings you can work with....
Read more >
How to Fix “Cannot find a valid baseurl for repo” in CentOS
In this short article, we will show how to fix “cannot find a valid baseurl for repo” error in CentOS Linux distribution.
Read more >
Windows Terminal Troubleshooting | Microsoft Learn
If you are seeing color issues in Windows Terminal 1.0 or 1.1, or issues that are not captured here, please file a bug....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found