-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
code-server -r filename results 'error Unexpected status code: 500' #6977
Comments
Have you resolved this? I have the same issue, nothing in logs either (verbose mode). |
In the integrated terminal, VS Code usually provides its own Either way, it makes a POST request against the VS Code socket stored in the |
Nope, still occurs from time to time.
I always use separate terminal window,
This is interesting as And here comes fun:
ie. it opens with 🤔 I can accept this as a solution, I just need to add to my rc the above and we are good. |
Ahhhh I see, yup if you use it outside of the integrated terminal and there is no There could definitely be a bug here. Or maybe if there was a second code-server instance spun up, it would take over that socket, and then if closed it would no longer be handling it, and there is no way for the older instance to take over again. Just one way this might happen, at least. We might need logic to gracefully handle multiple code-server instances, if this is what is happening. Setting |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.92.2 de65bfc with Code 1.92.2Steps to Reproduce
Expected
code-server opens the specified file in one of the open windows.
Actual
Some cases it works, mostly with fresh sessions, then after a while it breaks and I get only a
error Unexpected status code: 500
. I just realised that restarting the code-server instance and reloading the client window fixes the problem.Logs
As an intermittent issue I need to work a bit on the logs, I set verbose now.
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
I did not test native VS Code
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
Notes
No response
The text was updated successfully, but these errors were encountered: