#DevOverflow - Clerk Webhooks

6 messages · Page 1 of 1 (latest)

pseudo field
#

Hey everyone,

I'm facing some challenges setting up Clerk webhooks in my project. I've followed the course and the Clerk documentation, but I'm still encountering issues.

Here's the current situation:

-When I test the Clerk webhook endpoint by updating an account profile picture, it consistently fails.
-I've checked the Vercel logs, but haven't been able to locate any related errors. This suggests the webhook might not be reaching the endpoint.

Steps I've already taken:

-Added "/api/webhooks(.*)" to both publicRoutes and ignoredRoutes.
-Verified the Clerk webhook endpoint URL: https://dev-overflow-nextjs-git-026webhooksusercreation-johnnymaluls.vercel.app/api/webhooks.
-Reviewed the code in route.ts.
-Thoroughly examined Vercel and Clerk webhook logs.
-Checked the webhook secret key

Any assistance with troubleshooting these issues would be greatly appreciated. Thank you.

quartz gyro
quartz gyro
#

Yo i fixed it.

for me the issue was i had my models 'user name' property named as
"userName".... but clerk payload returns "username"

becuase of these difference, my vercel was throwing error, username not found.

som first i deleted that webhook and created a new one with first fixing my models name, and everywere this type was referenced

pseudo field
#

In my case, Vercel log doesn't even display any errors. The webhook might not be reaching the endpoint. I already checked the webhook endpoint link, re-added the api/webhook/route.ts, followed the clerk documentation, and searched online for solution, but the issue persists.

plain cosmos
#

Same here

pseudo field
#

I fixed my issue by deploying the project to production. I then used the deployed project's link as the endpoint in Clerk, rather than deploying the project using a branch as instructed in the course. Now, Vercel logs will display any errors that occur after deployment.