https://supabase.com/ logo
#help
Title
# help
k

kresimirgalic

01/11/2022, 10:28 PM
I am getting this error
Copy code
code: 500
error_id: "4fe56c6f-1db2-4f36-b23e-01a21712e303"
msg: "Database error saving new user"
s

silentworks

01/11/2022, 10:39 PM
This error is due to something being wrong in your trigger function. I notice you have a
or
in your values properties, I don't think that is valid sql
k

kresimirgalic

01/11/2022, 10:39 PM
without OR doesnt work also, same error
s

silentworks

01/11/2022, 10:40 PM
Something is wrong in your trigger function, you will need to debug that. Make sure all those columns exist and the names are correct
I would think
first_name
and
last_name
would come off the
raw_user_meta_data
property too
k

kresimirgalic

01/11/2022, 10:43 PM
hm i have a registration form, where i am defining those fields and sending them, they are not available in the user? do i need to add them to raw_user_meta_data when i run signUp method?
s

silentworks

01/11/2022, 10:54 PM
Can you share how you are sending them please?
A code example would be helpful
k

kresimirgalic

01/11/2022, 11:02 PM
yes one second
s

silentworks

01/11/2022, 11:11 PM
I only see
full_name
there, there is no
first_name
in that code
k

kresimirgalic

01/11/2022, 11:35 PM
I removed first_name and last_name
And i added full_name