_e
_e•5mo 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•5mo ago
Where do you see that error, in the dashboard?
_e
_eOP•5mo ago
In the client, it fails to connect websocket. In the dashboard, I can't open a project
ballingt
ballingt•5mo ago
@ethanlolomg that deployment looks healthy, is that the right one?
_e
_eOP•5mo ago
gautamg
gautamg•5mo ago
Can you try opening http://shiny-dolphin-222.convex.cloud/instance_name in a browser and confirm it loads?
_e
_eOP•5mo ago
I think all the projects are having the same problem
jamwt
jamwt•5mo ago
any chance you're on a vpn or something? we sometimes find some internet devices block *.cloud once in awhile
_e
_eOP•5mo ago
No description
_e
_eOP•5mo ago
I'm not using a vpn
ballingt
ballingt•5mo 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
_e
_eOP•5mo 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•5mo 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
_e
_eOP•5mo ago
Like our frontend, weren't able to make any query/mutation to the server, returning failed websocket connection in console log
ballingt
ballingt•5mo ago
@ethanlolomg Do you know approx when this started and ended this time?
_e
_eOP•5mo 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•5mo 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?