dɛənɪjɪəl
dɛənɪjɪəl2mo ago

[Solved] Error: 1013

hey everyone, I was starting my dev app as usual and I noticed that my avatar wasn't appearing, I check console, and I found it constantly repeating
WebSocket closed with code 1013: AuthProviderDiscoveryFailed
logging.ts:96 Attempting reconnect in 118.9021804382428ms
logging.ts:96 WebSocket reconnected
WebSocket closed with code 1013: AuthProviderDiscoveryFailed
logging.ts:96 Attempting reconnect in 118.9021804382428ms
logging.ts:96 WebSocket reconnected
No description
21 Replies
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
Basically I was running my dev app (i'm using React+Vite), the auth provider I'm using is GitHub. Everything worked perfectly untill I reloaded the page this one time, and my auth broke.
ballingt
ballingt2mo ago
This error means GitHub didn't respond to the request from the backend for the public key it needs. Is it working now? Did you delete or modify the GitHub OAuth app you use for this project?
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
no
ballingt
ballingt2mo ago
maybe this is GitHub rate limit or downtime, hm No it's not working, or no you haven't changed anything?
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
both
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
I have all the env variables needed, right?
No description
ballingt
ballingt2mo ago
Has this worked before?
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
Yeah
ballingt
ballingt2mo ago
then hard to imagine it's an env variable problem have you made any changes to anything lately?
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
shoud i make a new oauth app
ballingt
ballingt2mo ago
Which of your instances is this on? project name works
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
I wanted to change something with the userMenu, but then i reverted back to original, and when i reloaded the website, the auth broke. the userMenu is where i have auth login and sign-out I'm on npm run dev
"dev": "npm-run-all --parallel dev:frontend dev:backend",
"dev:frontend": "vite --open --port 3000",
"dev:backend": "convex dev",
"predev": "convex dev --until-success && convex dashboard",
"dev": "npm-run-all --parallel dev:frontend dev:backend",
"dev:frontend": "vite --open --port 3000",
"dev:backend": "convex dev",
"predev": "convex dev --until-success && convex dashboard",
im only on deployment, not production
lee
lee2mo ago
hmm the reconnect loop is unfortunate. have you gone through https://docs.convex.dev/auth/debug ? it has some tips for checking your environment variables and config
Debugging Authentication | Convex Developer Hub
You have followed one of our authentication guides but something is not working.
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
I think Ill have to wait this one out or something:
No description
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
Nov 28, 10:27:12 H GET https://.blablabla.convex.site/.well-known/jwks.json 500 66ms Uncaught Error: Missing environment variable `JWKS
ballingt
ballingt2mo ago
Ah mow you've got an error, great! Sounds like it is a config issue
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
I remember how it happened.... I deleted it form the env in the project do you know how to get it back? or generate a new one?
ballingt
ballingt2mo ago
Ah so you had changed something, great! Try going through the auth setup, it has instructions for this
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
FIIIIIXXXXXEEEEEDDDDD
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
just incase for anyone in the future: https://labs.convex.dev/auth/setup/manual
Manual Setup - Convex Auth
Authentication library for your Convex backend
No description
dɛənɪjɪəl
dɛənɪjɪəlOP2mo ago
Thank you!!!

Did you find this page helpful?