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
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
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](https://cdn.discordapp.com/attachments/1196103610849828925/1196103611483177123/image.png?ex=65b6694b&is=65a3f44b&hm=66133e867f44e85f91da768cfada5d2d112ffd3f52164b7f42af85087ae6a54a&)
3 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Alligator mississippiensisOP
Vercel error:
Example request ids:
tcph5-1705243421210-541342b7d5c4
v8lzp-1705243118329-d2677a25b519
tcph5-1705243421210-541342b7d5c4
v8lzp-1705243118329-d2677a25b519
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Alligator mississippiensisOP