supabase: Database error finding user (when creating one), supabase-auth accessing public.users not auth.users

Bug report

Describe the bug

I setup local dev a while ago, and now implementing auth. However when I call supabaseClient.auth.signUp(...) and look at the results in the net panel of dev tools, I see a result code error 500 and contents {code: 500, msg: "Database error finding user", ...} when posting to http://localhost:8000/auth/v1/signup

image

System information

  • OS: MacOS (latest)
  • Browser: Chrome (latest)
  • Version of supabase-js: 1.11.9
  • Version of Node.js: v14.16.1

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 10
  • Comments: 22 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Can we reopen this issue - still seeing this locally, and there isn’t a linked commit fixing this, it looks like the accepted solution is a workaround.

No. I had to rename the public.users to public.accounts.

It seems that when I use the example from the documentation for creating users in public.users table from auth.users on create I get a similar error.

Steps

  • Follow example from documentation
  • Invite user through Authentication tab inside supabase
  • Receive the following error: Inviting user failed: Database error saving new user.

Might this be somewhat relatable?

@MaxAltena I’m not sure that it’s the same since you’re using the Supabase hosted version. Your problem sounds more similar to the one specified here.