-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Bug]: built-in extensions "simple-browser" not work #5402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think the expectation here is that the port-forward is not needed as long as you are trying to browse using the Simple Browser, so the traffic originates from pod to code-server and then the browser just renders it. |
Ah, I understand now. Hmm...I'm not sure then 🤔 pinging @code-asher maybe @bpmct |
The issue says it cannot be reproduced in Codespaces but it reproduces for me. I ran The expectation makes sense to me but I believe the browser implementation is nothing more than an iframe so it will unfortunately resolve from your local machine. To fix like @jsjoeio said I think you will need to forward port 3000. Or you could try opening the port through code-server's proxy instead like with If the simple browser extension proxied itself that would be ideal though. |
Sadly, I don't think we can take action on this and there is a workaround, so I think it makes sense to close this. If there's more we can do to help, let us know! |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.5.1Steps to Reproduce
127.0.0.1:3000
, and it show connection refuseExpected
This plugin is built-in plugin, and can access nextjs app in sample browser.
Actual
Connection refuse.
Logs
[2022-08-03T08:19:08.250Z] info Wrote default config file to ~/.config/code-server/config.yaml
[2022-08-03T08:19:08.462Z] info code-server 4.5.1 97d1703
[2022-08-03T08:19:08.462Z] info Using user-data-dir ~/.local/share/code-server
[2022-08-03T08:19:08.471Z] info Using config file ~/.config/code-server/config.yaml
[2022-08-03T08:19:08.471Z] info HTTP server listening on http://0.0.0.0:8080/
[2022-08-03T08:19:08.471Z] info - Authentication is enabled
[2022-08-03T08:19:08.471Z] info - Using password from $PASSWORD
[2022-08-03T08:19:08.471Z] info - Not serving HTTPS
[08:19:56] Extension host agent started.
[08:19:56] [127.0.0.1][6e69e306][ManagementConnection] Unknown reconnection token (never seen).
[08:19:56] [127.0.0.1][6413cb24][ExtensionHostConnection] Unknown reconnection token (never seen).
[08:19:58] [127.0.0.1][533e507c][ManagementConnection] New connection established.
[08:19:58] [127.0.0.1][d5653c2d][ExtensionHostConnection] New connection established.
[08:19:58] [127.0.0.1][d5653c2d][ExtensionHostConnection] <80> Launched Extension Host Process.
[08:20:10] Using the in-memory credential store as the operating system's credential store could not be accessed. Please see https://aka.ms/vscode-server-keyring on how to set this up. Details: Cannot find module '../build/Release/keytar.node'
Require stack:
File not found: /usr/lib/code-server/lib/vscode/out/vs/workbench/contrib/webview/browser/pre/baidu.com
File not found: /usr/lib/code-server/lib/vscode/node_modules/vscode-regexp-languagedetection/dist/index.js
File not found: /usr/lib/code-server/lib/vscode/out/vs/workbench/contrib/webview/browser/pre/baidu.com
File not found: /usr/lib/code-server/lib/vscode/node_modules/@vscode/vscode-languagedetection/dist/lib/index.js.map
Screenshot/Video
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
I'm not using HTTPS!!!!
When I use curl access
127.0.0.1:3000
, it works, but can't access with sample browser.Here is same issues but close. #3495
The text was updated successfully, but these errors were encountered: