Uncaught (in promise) Error: [CONVEX A(auth:signIn)] in production
I cooked using Chef and continued locally.
I am not sure why, but I get this error in production.
It works with DEV env variables but not with
CONVEX_DEPLOY_KEY
.
8 Replies
+ Users are created!!! The error is shown, but users are created in the database. Really strange.
And the logs say
JWT_PRIVATE_KEY
is missing, but isn't it in CONVEX_DEPLOY_KEY
? I tried setting one manually, but that didn't work either.
+ I noticed, that the build commands are missing in Chef-built apps.
I also tried with all of the other variables:
CONVEX_DEPLOY_KEY=project:xxx:xxx|xxx
CONVEX_DEPLOYMENT=dev:xxx
VITE_CONVEX_URL=https://xxx.convex.cloud
Guys? 🥹
maybe try this step in the convex with setup? https://labs.convex.dev/auth/setup/manual#configure-private-and-public-key
Manual Setup - Convex Auth
Authentication library for your Convex backend
Yeah this is saying
JWT_PRIVATE_KEY
is not set in your Convex backend, which you can see in the dashboard under Settings > Environment Variables (these are different than the environment variables you have in your .env
or .env.local
files,)
Sound like running npx @convex-dev/auth
to make sure all the Convex Auth things are set up would help.@sshader
I just followed the guide at https://docs.convex.dev/production/hosting/vercel. Is this outdated?
Why is this not in the guide?
Okay I guess, because it is the same process for production like for development and I didn't have to do it for dev, because of Chef.
Thanks
Hm. The the key I copied from the dashboard throws the following (dev worked):
I will just do it manually.
works
Thank you.