New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failure on adding new user manually from dashboard is missing feedback #23552
Comments
Hey @Huilensolis Thanks for opening! I assume you know this failed due to the Developer Console? What error do you see? Just to help us reproduce? Thanks! |
Are you using Brave browser? I've seen users with the popups not showing there. |
yes, I'm using brave |
I thought that I didn't need to include the "steps to reproduce" because there was just no catch case, but I have realized is not the only possible case, maybe its a bug on the toast and it indeed should pop up but it is not. mb In my case, it was a Postgres error thrown by a function triggered by "insert" into auth.users, it failed because I was accessing an inexisting key the function (I named it begin
insert into public.user (id, username, full_name, avatar_url)
values (new.id, new.raw_user_meta_data->>'try_to_acces_to_undefined_key', new.raw_user_meta_data->>'full_name', new.raw_user_meta_data->>'avatar_url');
return new;
end; and to add the trigger I used the SQL editor: create trigger on_auth_user_created
after insert on auth.users for each row
execute procedure handle_new_user (); |
So is your real code problem resolved with the auth.users trigger? |
yes, the real code problem is solved now. I'm just reporting no popup in that case, as I thought they used a optimistic UI, as it creating new users is something supposed to success. so I thought they had no popup for a catch case |
Yes, it is a real bug that needs reporting as far as browser, mainly as you did not provide any info on the browser was bringing that up as I've seen that helping others limited to Brave. Glad you found the underlying issue. |
Or it is a feature of Brave to block popups.. I don't know. |
Sorry, I don't know, I'm not a UI or SB dev. Just really pointing out Brave/SB has this issue from others I've helped and in case you had not found your underlying issue what it likely was and where to look. |
It is a brave compatibility issue then. if this issue is duplicated, they can close it, thank you for your help @GaryAustin1 ! |
Bug report
Describe the bug
if you try to create a new user from the dashboard and it fails, there is no feedback indicating that it went wrong.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Go to the supabase auth dashboard
https://supabase.com/dashboard/project/${projectId}/auth/users
Click on "Add new user"
click on "Create new user"
fill the form
click "Create user"
if it fails, it won't show any UI showing an error
Expected behavior
Show a toast with the API response message
The text was updated successfully, but these errors were encountered: