Unable to Sign up while running on simulator
Closed this issue · 6 comments
Describe the bug
Running debug build on simulator, I can see the main screen.
I get this error "flutter: Error: {data: null, status: 403, error: {message: new row violates row-level security policy for table "profiles", details: null, hint: null, code: 42501}, count: null}" when I click on Signup after filling in email, password .
To Reproduce
Steps to reproduce the behavior:
- Download repo to local
- Implement everything on Read me (connecting to supabase, build run)
- Run the app on the Simulator.
- Go to Sign Up
- Fill email, password, confirm password
- Click Signup button
Expected behavior
Sign up should complete and proceed to the next screen.
Instead it gets stuck on this screen and I see an error message in the console.
flutter: Error: {data: null, status: 403, error: {message: new row violates row-level security policy for table "profiles", details: null, hint: null, code: 42501}, count: null}
Screenshots
The screen where error is showing up.
Smartphone (please complete the following information):
Simulator - iPhone 12 Pro Max
Can you try deleting your table and running query again but this time without row level security?
i.e. Do not write below line
alter table profiles enable row level security;
I might have missed something.
I don't have exact idea that if I have added the row level security or not, have to check.
Update README.md with proper query, can you try creating table once again with that query?
Closing this issue as I have updated README.md with latest Query to Create Table(s), Feel free to open it again if still stuck with issue.
Sorry I was just busy last few days so couldn't test this.
Tested now according to latest instructions on Readme.
All working fine now.
Great, Thanks!