Needle
03/19/2022, 8:21 PM/title
command!
We have solved your problem?
Click the button below to archive it.Needle
03/19/2022, 8:21 PM/title
command!
We have solved your problem?
Click the button below to archive it.theuknowner
03/19/2022, 9:07 PMScott P
03/19/2022, 9:36 PMNeedle
03/19/2022, 10:17 PM/title
command!
We have solved your problem?
Click the button below to archive it.leynier
03/19/2022, 10:56 PM{'message': 'permission denied for table clients', 'code': '42501', 'details': None, 'hint': None}
I have tried putting and removing the RLS to the table, and it keeps the error. It seems to be a postgres level permissions error, is there a way to reset to default permission settings?theuknowner
03/20/2022, 7:37 PMbluetoothfx
03/20/2022, 9:44 PMdaviscup
03/20/2022, 9:51 PMCrane
03/20/2022, 10:05 PMDeleted User
03/21/2022, 1:37 AMd33pu
03/21/2022, 2:57 AMcurl 'https://cbgccbohphtbbvnoecep.supabase.co/rest/v1/latestOilTracker?select=*' \
-H "apikey: xxx" \
-H "Authorization: Bearer xxx"
In the above script "latestOilTracker" is actually a functionjson
03/21/2022, 4:32 AMsinggih
03/21/2022, 8:03 AMALTER POLICY "only own user can see attendance" IN public.attendance USING (( EXISTS ( SELECT 1 FROM profile WHERE (profile.id = attendance.profile_id) ) )))) ;
return empty from server . I just want to learn how the policy rules work. if I try auth.uid() = profile_id
it works.TMShader
03/21/2022, 1:37 PMthewebbeckons
03/21/2022, 3:03 PMManuel Coffin
03/21/2022, 3:34 PMjs
const { error, data } = await supabase.auth.api.updateUser(token, { password: password.trim() })
the token being the one in the url.
This works, but when I try to update the password for a logged in user, using the exact same method supabase.auth.api.updateUser
, it fails to find the user;
The difference is the token is the session.access_token
So I've tried to use the supabase.auth.api.updateUserById
method, but it gives me another error: { message: 'User not allowed', status: 401 }
Any ideas? I feel the docs about this is not very clear, and probably outdated as it doesn't show all the available methods :/GHOST
03/21/2022, 6:30 PMuser_id
property that contains their idpatcito
03/21/2022, 9:32 PMpatcito
03/21/2022, 9:33 PMdrilkmops
03/21/2022, 10:07 PMnumber[]
? When i set it as that it seems to get return as type: 'array', format: 'ARRAY'
VΞLO
03/21/2022, 11:39 PMCipherCode
03/22/2022, 12:35 AMjavascript
const mySubscription = supabase
.from('*')
.on('*', payload => {
console.log('Change received!', payload)
})
.subscribe()
im using this push notification code from the documentation, and i set the trigger and the function in the supabase interface but im still not getting the console.log('change received'....Lukas
03/22/2022, 12:58 AMProdigy7kX
03/22/2022, 2:49 AMOR
?
like this: ((is_public = true) OR (uid() = user_id))
Avin
03/22/2022, 5:29 AMauth
to run checks in RLS policies?cateru
03/22/2022, 10:22 AMstandard_init_linux.go:228: exec user process caused: exec format error
InvestorChris
03/22/2022, 11:59 AMdmytro.eth
03/22/2022, 12:02 PMManuel Coffin
03/22/2022, 12:39 PMerror: "Key is not present in table \"users\"."
message: "insert or update on table \"objects\" violates foreign key constraint \"objects_owner_fkey\""
statusCode: "23503"
I'm not sure of what it means 🤷♂️
Maybe my policies are not properly set?
Or could it be that the roles=authenticated
property of the request is not understood by supabase?
Any advice about this?