ethanlolomg
ethanlolomg•4w ago

Can't access Convex cloud hosted server

Can't open the Convex dashboard for all of my projects, and verify our client isn't able to access too: WebSocket connection to 'wss://shiny-dolphin-222.convex.cloud/api/1.18.2/sync' failed: It happened a couple days ago too, but I think after a few hours it fixed on its own. Do you what is the cause, and how to prevent it?
No description
16 Replies
ballingt
ballingt•4w ago
Where do you see that error, in the dashboard?
ethanlolomg
ethanlolomgOP•4w ago
In the client, it fails to connect websocket. In the dashboard, I can't open a project
ballingt
ballingt•4w ago
@ethanlolomg that deployment looks healthy, is that the right one?
ethanlolomg
ethanlolomgOP•4w ago
gautamg
gautamg•4w ago
Can you try opening http://shiny-dolphin-222.convex.cloud/instance_name in a browser and confirm it loads?
ethanlolomg
ethanlolomgOP•4w ago
I think all the projects are having the same problem
jamwt
jamwt•4w ago
any chance you're on a vpn or something? we sometimes find some internet devices block *.cloud once in awhile
ethanlolomg
ethanlolomgOP•4w ago
No description
ethanlolomg
ethanlolomgOP•4w ago
I'm not using a vpn
ballingt
ballingt•4w ago
ok so - you and we can hit some HTTP endpoints on this instance, like https://shiny-dolphin-222.convex.cloud/instance_name - your dashboard can't load any deployment in any project? - we don't see errors for this instance so we're wondering about some issue from the client. Curious if things are different on your phone or another network
ethanlolomg
ethanlolomgOP•4w ago
Oh wait, I think it just fixes on it own like last time 😅 I tried on my phone and it worked, but saw it's working on my laptop too
ballingt
ballingt•4w ago
next time this happens, could you run npx convex network-test in that project? Re client not being able to access as well, that's interesting oh by
verify our client isn't able to access too:
what do you mean, a user of your site? or your ConvexHttpClient or similar
ethanlolomg
ethanlolomgOP•4w ago
Like our frontend, weren't able to make any query/mutation to the server, returning failed websocket connection in console log
ballingt
ballingt•4w ago
@ethanlolomg Do you know approx when this started and ended this time?
ethanlolomg
ethanlolomgOP•4w ago
I don't know the exact start, but I first noticed it 4 p and it ended around 5 p. Last time, it happened Jan 28th started around midnight lasted until 4 am @Tom it just occurred again, and this is the output I am getting from running npx convex network-test
(base) ethanchang@Mac ~ % npx convex network-test
/Users/ethanchang/.npm/_npx/89c650e61e38ed13/node_modules/convex/dist/cli.bundle.cjs:129761
var retryingFetch = (0, import_fetch_retry.default)(fetch);
^

ReferenceError: fetch is not defined
at Object.<anonymous> (/Users/ethanchang/.npm/_npx/89c650e61e38ed13/node_modules/convex/dist/cli.bundle.cjs:129761:53)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:168:29)
at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
(base) ethanchang@Mac ~ % npx convex network-test
/Users/ethanchang/.npm/_npx/89c650e61e38ed13/node_modules/convex/dist/cli.bundle.cjs:129761
var retryingFetch = (0, import_fetch_retry.default)(fetch);
^

ReferenceError: fetch is not defined
at Object.<anonymous> (/Users/ethanchang/.npm/_npx/89c650e61e38ed13/node_modules/convex/dist/cli.bundle.cjs:129761:53)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:168:29)
at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
On my phone it seems fine, but on my laptop Convex dashboard and query don't seem to work
ballingt
ballingt•4w ago
Ah interesting, looks like the network test doesn't work with this older version of Node.js installed

Did you find this page helpful?