You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to fix this issue for the last three days. I used up so many tokens.
So, I have/had this table name "Categories" but whenever I attempt to move forward from this screen, I keep getting the error. I deleted the table from Supabase and created another one name "Categories1" and attempted to copy the elements from "Categories" to "Categories1" but to no avail. I need some help. Tried these command and still they didn't help
Fix Supabase API error 400: ERROR 42710 (policy "Categories are viewable by everyone" already exists). Ensure the policy does not already exist before creating it. If it does, modify or reuse the existing policy.
DROP POLICY IF EXISTS "Categories are viewable by everyone" ON categories;
CREATE POLICY "Categories are viewable by everyone"
ON categories
FOR SELECT
TO public
USING (true);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been trying to fix this issue for the last three days. I used up so many tokens.
So, I have/had this table name "Categories" but whenever I attempt to move forward from this screen, I keep getting the error. I deleted the table from Supabase and created another one name "Categories1" and attempted to copy the elements from "Categories" to "Categories1" but to no avail. I need some help. Tried these command and still they didn't help
Fix Supabase API error 400: ERROR 42710 (policy "Categories are viewable by everyone" already exists). Ensure the policy does not already exist before creating it. If it does, modify or reuse the existing policy.
How can I fix this?
Beta Was this translation helpful? Give feedback.
All reactions