Skip to content
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

Remote source path given 404 error when working http://127.0.0.1:8080/vscode url #7261

Open
1 of 2 tasks
e-vural opened this issue Mar 13, 2025 · 4 comments
Open
1 of 2 tasks
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@e-vural
Copy link

e-vural commented Mar 13, 2025

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome 133.0.6943.142
  • Local OS: Macos Sonama 14.4
  • Remote OS:
  • Remote Architecture:
  • code-server --version: v4.98.0 and also main branch

Steps to Reproduce

  1. Open code-server in chrome with http://127.0.0.1:8080/vscode
  2. Open chrome developer console
  3. You can see 404 errors

Expected

Proper functioning of extensions

Actual

This error causes the extensions not to work correctly. The php files look like txt because the extension is not working.

In my investigations, http://127.0.0.1:8080/vscode/vscode/oss-dev/vscode-remote-resource?path=. I saw that extra /vscode was added in this url. lib/vscode/src/vs/base/common/network.ts If I change the code in line 224 to this._remoteResourcesPath, there seems to be no problem. But I don't know if the problem is only caused by this.

Logs

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

No, this works as expected in native VS Code

Does this bug reproduce in GitHub Codespaces?

No, this works as expected in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@e-vural e-vural added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Mar 13, 2025
@code-asher
Copy link
Member

Does the same problem happen if you browse to http://127.0.0.1:8080 (no /vscode)? /vscode is a legacy route, but we should fix it all the same.

@code-asher
Copy link
Member

Or, wait, is /vscode something you added with a reverse proxy? If that is the case, I think http://127.0.0.1:8080/vscode/ (trailing slash) should work.

@e-vural
Copy link
Author

e-vural commented Apr 3, 2025

Or, wait, is /vscode something you added with a reverse proxy? If that is the case, I think http://127.0.0.1:8080/vscode/ (trailing slash) should work.

Yes! You are right. http://127.0.0.1:8080/vscode/ that url working. However, I use the same configuration in v4.96.4. There is no problem in that version. v4.98.2 has problems. is this normal?

@code-asher
Copy link
Member

Hmm that does seem strange, I would expect previous versions to have the same problem without a trailing slash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants