-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
SSH: Constant disconnects in VS Code when working on a Next.js app #19284
SSH: Constant disconnects in VS Code when working on a Next.js app #19284
Comments
Hi @mrodrigues95, I tried to repro but couldn't, do I just need to visit http://localhost:3000/login or do I need to login too?
|
Hey @jeanp413, You should be able to reproduce by just visiting http://localhost:3000/login or http://localhost:3000/signup, you may need to refresh the page a few times before being disconnected. I've attached a video below with a demonstration of what's going on.
23.12.2023_13.28.25_REC.mp4 |
@mrodrigues95 do you still experience this consistently? if so could you run the |
@jeanp413 Yeah, I'm still experiencing this consistently, Here's the output:
I've ran it a few times and it seems pretty consistent with above when idle. I noticed when the workspace disconnects, the latency seems to spike to ~2-4s before going back to < 100ms once reconnected, e.g.
Again, this only seems to be the case when navigating around the NextJS app as shown in the previous video. |
I've a very similar problem with a firebase app, using the firebase emulator with a single page app. |
Could you try to set "remote.SSH.useLocalServer" to false and see whether it improves. We were able to reproduce the issue outside of Gitpod as well and reported on the upstream: microsoft/vscode-remote-release#9921 |
Different issue, but we can repro. |
Bug description
When connecting to a Gitpod workspace via VS Code desktop, I'm noticing my SSH connection periodically lose connection as I'm working. Interesting enough, I'm noticing that this mainly occurs while working on a Next.js web app whether I'm saving changes in VS Code or simply just refreshing the app in my web browser.
SSH logs seems to produce
client_loop: send disconnect: Unknown error
and/orFailed to set up socket for dynamic port forward to remote port 40269: connect ECONNREFUSED 127.0.0.1:49235. Is the remote port correct?
when this occurs, before attempting to reconnect again.One important thing to note is that if I manually forward the ports via SSH before opening the workspace in VS Code (i.e. don't let VS Code auto-forward them), it works smoothly with no random disconnects.
Steps to reproduce
Open up the mentioned Gitpod workspace instance in VS Code desktop, observe random disconnects while using the Next.js app at http://localhost:3000/login.
Workspace affected
mrodrigues95-chatse-n76cj5b1tsx
Expected behavior
I shouldn't be disconnected so often.
Example repository
https://github.com/mrodrigues95/chatse
Anything else?
No response
The text was updated successfully, but these errors were encountered: