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
23 days ago
Jan 16, 2025, 11:05 AM
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
23 days ago
Jan 16, 2025, 3:04 PM
Do you have the latest version fo the browser plugin?
PeterShaw
23 days ago
Jan 16, 2025, 3:18 PM
Request is proxied and version of plugin is 2.3.1 which is the most recent one
PeterShaw
22 days ago
Jan 17, 2025, 9:56 AM
@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
19 days ago
Jan 20, 2025, 11:43 AM
@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