tried to get data from supabase its not getting any

keys = UptimeKeysL.select("*").execute() print(keys) data=[] count=None
No description
9 Replies
Cartesians Miasma
i verified it actually detected uptimekeys exist but it doesnt get data i inserted
garyaustin
garyaustin3d ago
Do you meet RLS?
Cartesians Miasma
how do i check
garyaustin
garyaustin3d ago
In the Table UI it will say if it is enabled or not for the table. If it is enabled you have to add policies for insert/select etc. based on what users you want to see/use the table.
Cartesians Miasma
how do i disable rls its not anything that needs intense security
garyaustin
garyaustin3d ago
If you disable RLS any user on the web that has your url and key can insert to your tables.... There should be a button in the UI to disable it.
Cartesians Miasma
idc bro lol its a unknown bot im developing nobody would have access to my key anyways
garyaustin
garyaustin3d ago
You see the button to add RLS at top right? If so click that and there is an option to disable. If/when you worry about it here is info: https://supabase.com/docs/guides/database/postgres/row-level-security
Cartesians Miasma
thanks

Did you find this page helpful?