[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
21 Replies
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.
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?
no
maybe this is GitHub rate limit or downtime, hm
No it's not working, or no you haven't changed anything?
both
I have all the env variables needed, right?
Has this worked before?
Yeah
then hard to imagine it's an env variable problem
have you made any changes to anything lately?
shoud i make a new oauth app
Which of your instances is this on?
project name works
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
im only on deployment, not production
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.
I think Ill have to wait this one out or something:
Nov 28, 10:27:12
H
GET https://.blablabla.convex.site/.well-known/jwks.json
500
66ms
Uncaught Error: Missing environment variable `JWKS
Ah mow you've got an error, great! Sounds like it is a config issue
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?
Ah so you had changed something, great!
Try going through the auth setup, it has instructions for this
FIIIIIXXXXXEEEEEDDDDD
just incase for anyone in the future: https://labs.convex.dev/auth/setup/manual
Manual Setup - Convex Auth
Authentication library for your Convex backend
Thank you!!!