Next.js Discord

Discord Forum

Function works when using "vercel dev" or running and building locally but it doesnt work on vercel.

Unanswered
Alligator mississippiensis posted this in #help-forum
Open in Discord
Avatar
Alligator mississippiensisOP
Hi guys, I am having problems with Clerk webhooks (I have attached the code bellow in a file called "route.ts", the path for my api endpoint is "/api/clerk/webhook") working on Vercel properly, I've checked the api secrets they are correct. I have tested this by running "vercel dev" and then using ngrok to make a tcp proxy and test trough Clerk dashboard and it worked. I am not sure how to fix it whatsoever. But I keep getting error 405 or error 500 on Vercel with no response, I have checked Vercel logs and I see these errors (I have attached vercel-error.txt.)
Image
Image

3 Replies

Avatar
Alligator mississippiensisOP
Vercel error:
Image
Example request ids:
tcph5-1705243421210-541342b7d5c4
v8lzp-1705243118329-d2677a25b519