Hey all, I migrated an API to the new UI and since then I always receive the message "new row violates row-level security policy for table "input". RLS policy is still the same that did work before. I assume it has to do with the access token which is not passed correctly?!
Tod
1 month ago
Great energy @PeterShaw! Your continuous contribution to the toddle Community just made you advance to Community Level 4!
Might just need to make sure the request is proxied
Andreas Møller
1 month ago
Do you have the latest version fo the browser plugin?
PeterShaw
1 month ago
Request is proxied and version of plugin is 2.3.1 which is the most recent one
PeterShaw
1 month ago
@Lucas G@Andreas Møller I jsut changed the RLS type to ALL and changed the API type to GET and surprisingly this works. Still Im wondering why POST does not
No no I just noticed that with the get request I do not receive the RLS error message but with the post request.
PeterShaw
1 month ago
@Lucas G@Andreas Møller Im still facing the problem and I cannot find a solution. I created new policies, created new tables but its always the same issue. I attached screenshots of login API which stores the access token by setting session cookies, screenshots of the POST API and a screenshot of my rls. Any idea? Thank you 🙂
Hey. It is tricky to debug from here. Can you try running the request in preview mode, with the develooper tools open. Then we can see if the request is being sent correctly