gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

"We are having trouble connecting to the server"

Open mikenikles opened this issue 3 years ago • 25 comments

Bug description

Once or twice per week, I can't start workspaces due to the following error popup:

image

In the browser console, I see the following:

WebSocket connection to '<URL>' failed: WebSocket is closed before the connection is established.

t {target: e, type: 'error', message: 'TIMEOUT', error: Error: TIMEOUT
    at e._handleTimeout (https://gitpod.io/static/js/10.5f2ca1ce.chunk.js:2:762935)
…}

Steps to reproduce

No reliable steps yet. I did notice though the browser I use doesn't matter. Here's my workflow:

  1. Use Brave for a few days until the error starts to show up
  2. Switch to Firefox for a few days until the error shows up there too
  3. Switch back to Brave
  4. Repeat

Workspace affected

No response

Expected behavior

I can start workspaces consistently without the need to change browsers.

Example repository

No response

Anything else?

No response

mikenikles avatar Feb 18 '22 17:02 mikenikles

I see this again at the moment. Any URL at the https://gitpod.io root domain shows that alert after a few seconds.

mikenikles avatar Mar 17 '22 03:03 mikenikles

I see this again at the moment. Any URL at the https://gitpod.io root domain shows that alert after a few seconds.

@mikenikles I think maybe there's something useful in your console logs to debug this issue for our webapp team. Could you try grabbing the logs when it happens next time :pray:?

axonasif avatar Mar 17 '22 10:03 axonasif

I did that when I opened the issue, you can find it in the Bug description section above.

mikenikles avatar Mar 31 '22 02:03 mikenikles

I did that when I opened the issue, you can find it in the Bug description section above.

Oh, very sorry 😅 I thought there's more in logs so maybe I failed to notice that.

axonasif avatar Apr 05 '22 16:04 axonasif

Exact same error here on Brave (Windows 10)

image

I think it's brave related apparently as the site loads fine in Edge for instance. I disable the Shields (Brave's Tracker/Ad blocker), and any extension that could be an issue (LocalCDN, FastForward) to no avail

melMass avatar May 28 '22 13:05 melMass

image

melMass avatar May 28 '22 14:05 melMass

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 24 '22 16:09 stale[bot]

I'm facing this on Brave. Any updates on how to resolve this? It worked well for a few days and then it couldn't connect anymore.

Sidduppal avatar Nov 07 '22 18:11 Sidduppal

Having the same issue, here is the console in case it can helps the team, it's totally random, but I notice it mainly on Brave for the moment. I've disabled Bravhe shield & ad blockers on gitpod: image

foufrix avatar Dec 01 '22 15:12 foufrix

I have the same problem for a few days, I can't even work properly.

andrei0465 avatar Dec 09 '22 21:12 andrei0465

this is a serious problem guys.

woss avatar Jan 19 '23 15:01 woss

Chrome Windows 11 same

ChiuHuang avatar Mar 06 '23 10:03 ChiuHuang

Sidekick windows 11 same..

ChiuHuang avatar Mar 06 '23 10:03 ChiuHuang

image image image

ChiuHuang avatar Mar 06 '23 10:03 ChiuHuang

0: url:https://gitpod.io/api/gitpod content_type:null http_code:0 header_size:0 request_size:0 filetime:-1 ssl_verify_result:0 redirect_count:0 total_time:0 namelookup_time:0.017967 connect_time:0.048175 pretransfer_time:0 size_upload:0 size_download:0 speed_download:0 speed_upload:0 download_content_length:-1 upload_content_length:-1 starttransfer_time:0 redirect_time:0 redirect_url: primary_ip:34.120.231.152 certinfo:

ChiuHuang avatar Mar 06 '23 11:03 ChiuHuang

{"error":"Error: unhandled request: GET /gitpod\nStack: Error: unhandled request: GET /gitpod\n at unhandledToError (/app/node_modules/@gitpod/server/dist/src/express-util.js:133:17)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/app/node_modules/express/lib/router/index.js:323:13)\n at /app/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/app/node_modules/express/lib/router/index.js:341:12)\n at next (/app/node_modules/express/lib/router/index.js:275:10)\n at /app/node_modules/express/lib/router/index.js:641:15\n at next (/app/node_modules/express/lib/router/index.js:260:14)\n at Function.handle (/app/node_modules/express/lib/router/index.js:174:3)\n at router (/app/node_modules/express/lib/router/index.js:47:12)\n at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/app/node_modules/express/lib/router/index.js:323:13)\n at /app/node_modules/express/lib/router/index.js:284:7\n at Function.process_params (/app/node_modules/express/lib/router/index.js:341:12)\n at next (/app/node_modules/express/lib/router/index.js:275:10)\n at /app/node_modules/express/lib/router/index.js:641:15"}

https://gitpod.io/api/gitpod???

ChiuHuang avatar Mar 06 '23 11:03 ChiuHuang

i have this exact same issue and it seems to be utterly random

RossCampbellDev avatar Mar 20 '23 17:03 RossCampbellDev

My colleagues are still getting this issue too. Trying a different network such as running on a mobile hotspot also has no affect.

the-nathan-smith avatar Aug 15 '23 10:08 the-nathan-smith

@the-nathan-smith What browser are you using?

laushinka avatar Aug 17 '23 10:08 laushinka

@laushinka my colleague tried Edge and Chrome. They have never used Gitpod before either and don't have an account.

the-nathan-smith avatar Aug 17 '23 12:08 the-nathan-smith

Any progress? I'm stuck on this.

bam80 avatar Dec 29 '23 22:12 bam80

@bam80 can you try in a different browser if it's still happening?

axonasif avatar Jan 17 '24 11:01 axonasif

@axonasif It does work currently, thanks.

bam80 avatar Jan 17 '24 12:01 bam80

I am experiencing the same issue. What could be problem? image

G-vans avatar Feb 15 '24 10:02 G-vans