Dan Mercer
Dan Mercer2w ago

Prod deploy mysteriously failing with 400 Bad Request: UnexpectedAuthHeaderFormat

I was able to successfully deploy my project on Vercel when I last changed it on 5 Mar 2025, but I made a frontend change today (no Convex changes) and the convex deploy step is now failing with this error:
400 Bad Request: UnexpectedAuthHeaderFormat: Unexpected auth header format. If you are trying to use preview deployments, please generate a new key in the Convex dashboard.
400 Bad Request: UnexpectedAuthHeaderFormat: Unexpected auth header format. If you are trying to use preview deployments, please generate a new key in the Convex dashboard.
I generated a new deploy key (and noticed that this new one had a different format, e.g. it was shorter - interesting) and updated my CONVEX_DEPLOY_KEY env variable in Vercel, but still no dice. Any other tips?
2 Replies
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Dan Mercer
Dan MercerOP2w ago
Upgrading my convex dependency seems to have fixed it!

Did you find this page helpful?