https://supabase.com/ logo
#help
Title
# help
m

Muphet

06/08/2022, 8:14 AM
did anything changed to API between yesterday and now? my app suddenly doesn't work without any changes in the code. all patch(update) requests return 404 with empty array as response
n

Needle

06/08/2022, 8:14 AM
Hello @Muphet! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
m

Muphet

06/08/2022, 8:25 AM
actually, i might have found a bug. let me trace this and submit elsewhere..
n

Needle

06/08/2022, 8:25 AM
Thread was archived by @Muphet. Anyone can send a message to unarchive it.
m

Muphet

06/08/2022, 9:15 AM
nevermind, looks like still persists. i noticed that UPDATE doesn't work with rls enabled? thus far i've been using `role()='authenticated'::text) but also new
Copy code
CREATE POLICY "policy_name"
ON public.listings
FOR INSERT 
TO authenticated 
WITH CHECK (true);
returns same error
g

garyaustin

06/08/2022, 1:01 PM
Update policy normally needs a using clause with optional with check. Edit: But I see even though you say update a couple of times, you are showing Insert policy...