https://supabase.com/ logo
Can't register new users: ``` code: 500 error_id:...
# help
m
Can't register new users:
Copy code
code: 500
error_id: "12d89d99-7fa1-4047-9d29-654d71bb10d0"
msg: "Database error saving new user"
n
Hello @mathewcst! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
m
I have signup allowed, using email provider
I can't register users through my app nor can I invite them via the dashboard
s
This generally happens when you have a trigger function that is failing. Did you create any triggers and trigger functions?
m
yeah, only one to fill a
profiles
table with user name and id
Copy code
begin
  insert into public.profiles (id, name)
  values (new.id, new.raw_user_meta_data.name);
  return new;
end;
found the error
it should be
new.raw_user_meta_data->>'name'
instead of
new.raw_user_meta_data.name
ty @silentworks for pointing out it was a function/trigger thing
n
Thread was archived by @mathewcst. Anyone can send a message to unarchive it.
2 Views