Skip to content
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

Unable to Sign up while running on simulator #9

Closed
deepu opened this issue Jul 22, 2021 · 6 comments · Fixed by #25
Closed

Unable to Sign up while running on simulator #9

deepu opened this issue Jul 22, 2021 · 6 comments · Fixed by #25
Assignees
Projects

Comments

@deepu
Copy link

deepu commented Jul 22, 2021

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:

  1. Download repo to local
  2. Implement everything on Read me (connecting to supabase, build run)
  3. Run the app on the Simulator.
  4. Go to Sign Up
  5. Fill email, password, confirm password
  6. 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.
Screenshot 2021-07-22 at 6 31 27 PM

Smartphone (please complete the following information):
Simulator - iPhone 12 Pro Max

@ibhavikmakwana
Copy link
Owner

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.

@ibhavikmakwana
Copy link
Owner

I don't have exact idea that if I have added the row level security or not, have to check.

@ibhavikmakwana ibhavikmakwana self-assigned this Jul 22, 2021
@ibhavikmakwana ibhavikmakwana added this to To do in Manch via automation Jul 22, 2021
@ibhavikmakwana
Copy link
Owner

Update README.md with proper query, can you try creating table once again with that query?

@ibhavikmakwana ibhavikmakwana moved this from To do to In Review in Manch Jul 31, 2021
@ibhavikmakwana ibhavikmakwana linked a pull request Jul 31, 2021 that will close this issue
@ibhavikmakwana
Copy link
Owner

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.

Manch automation moved this from In Review to Done Jul 31, 2021
@deepu
Copy link
Author

deepu commented Jul 31, 2021

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.

@ibhavikmakwana
Copy link
Owner

Great, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Manch
Done
Development

Successfully merging a pull request may close this issue.

2 participants