LifeIsBoring
LifeIsBoring4mo ago

Hi, I am facing difficulty in making database from Clerk to Convex

Currently, I am developing the authentication. I have successfully created signIn, signOut on Clerk but I follow the instruction (https://docs.convex.dev/auth/database-auth#optional-users-table-schema) for webhook. When I sign in, the information just get connected to Clerk but not Convex database. Here is my http.ts:
Storing Users in the Convex Database | Convex Developer Hub
_If you're using Convex Auth the user information
No description
10 Replies
Matt Luo
Matt Luo4mo ago
As I understand it, you're trying to set up Clerks webhooks in order to sync data into the Convex database. What do your Clerk webhook logs say?
ballingt
ballingt4mo ago
@LifeIsBoring In the Clerk dashboard, try deleting this user (or all users) so that you'll receive the WebHook events for creating a new user.
LifeIsBoring
LifeIsBoringOP4mo ago
I have tried that but they usually gives me missing value for webhook. Do I need to initialize the form to be the same the form webhook have to store my needed data ?
ballingt
ballingt4mo ago
I'm sorry I'm not sure what you're talking about. What's a missing value for a webhook, does the Clerk webhook not contain data you want? What does it mean to initialize a form? What is a form webhook?
LifeIsBoring
LifeIsBoringOP4mo ago
@ballingt sorry Tom! Was at work when texted you. This is what I got in the log on dashboard convex.dev
No description
LifeIsBoring
LifeIsBoringOP4mo ago
and here is my upsertFromClerk
No description
No description
LifeIsBoring
LifeIsBoringOP4mo ago
I wonder is there any solution to this ?
Hmza
Hmza4mo ago
What does your schema look like for ‘users’ ?
ballingt
ballingt4mo ago
@LifeIsBoring based in that error it looks like your validator is too strict! I'd relax your schema if you want to accept these.
LifeIsBoring
LifeIsBoringOP4mo ago
Ah okay thanks I fixed it

Did you find this page helpful?