Jonas
Jonas•5w ago

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.
No description
8 Replies
Jonas
JonasOP•5w ago
+ Users are created!!! The error is shown, but users are created in the database. Really strange.
Jonas
JonasOP•5w ago
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.
No description
Jonas
JonasOP•5w ago
+ 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? 🥹
alixi
alixi•5w ago
Manual Setup - Convex Auth
Authentication library for your Convex backend
sshader
sshader•4w ago
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.
Jonas
JonasOP•4w ago
@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
Jonas
JonasOP•4w ago
Hm. The the key I copied from the dashboard throws the following (dev worked):
Jonas
JonasOP•4w ago
I will just do it manually. works Thank you.

Did you find this page helpful?