Vosken
08/03/2022, 8:03 AMlooni
08/03/2022, 8:04 AMReuben
08/03/2022, 8:31 AMHorseShoe
08/03/2022, 9:00 AMlocation.origin/auth/login
as my redirectTo parameter in sign in function but it doesnt work and even in my production website it just redirects to localhostjoshijax
08/03/2022, 9:33 AMnilooy
08/03/2022, 9:35 AMstudio
app please?rimac
08/03/2022, 9:41 AMSuccessfully updated settings
-> refresh page -> old settingsTARS
08/03/2022, 9:48 AMdaksh
08/03/2022, 10:22 AMmalaleche
08/03/2022, 11:26 AMconst { data: dataDelete, error: errorDelete } = await supabase
.from('wa_queue_task')
.delete()
.in('id_sec', aIdQueueSent);
It gives me the error: uri too long
aIdQueueSent is an array of ids and it's around 500, any alternative?
I though about using a RPC but I don't know if I will be in the same problem. How can I know what's the limit of delete?Blaise
08/03/2022, 12:21 PMPechenyi
08/03/2022, 1:22 PMsql
CREATE TABLE realtime_test (
id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
val varchar
);
-- Set up Realtime!
begin;
drop publication if exists supabase_realtime;
create publication supabase_realtime;
commit;
alter publication supabase_realtime
add table realtime_test;
-- at this point realtime works fine
-- but it stops working when I enable it
ALTER TABLE realtime_test
ENABLE ROW LEVEL SECURITY;
create policy "Allow SELECT all" on realtime_test
for select using (true);
js
import { createClient } from '@supabase/supabase-js'
const supabaseUrl = process.env.SUPABASE_URL
const supabaseKey = process.env.ANON_KEY
if (!supabaseKey) {
throw "ANON_KEY environment variable is missing"
}
const supabase = createClient(supabaseUrl, supabaseKey)
await supabase.auth.signIn({ "email": "...", "password": "..." });
let { data } = await supabase.from("realtime_test").select("*")
console.log(data) // data is fine, meaning RLS rules are correct
const subscription = supabase
.from('realtime_test')
.on('*', payload => {
console.log('Change received!', payload) // It works when RLS is disabled, but not when RLS is enabled
})
.subscribe()
Julien
08/03/2022, 1:50 PMstevekrouse
08/03/2022, 2:06 PMonConflict
. It always errors duplicate key value violates unique constraint "users_pkey"
. I want it to overwrite the existing row with the user's primary key with a new handle. Does anyone see what I'm doing wrong? 🙏
js
await supabase
.from("users")
.upsert(
{
handle,
id: loggedInUser.id
},
{ onConflict: "handle" }
);
React noob
08/03/2022, 2:34 PMGMan
08/03/2022, 4:00 PMTARS
08/03/2022, 4:23 PMMobileMon
08/03/2022, 4:36 PMNanoBit
08/03/2022, 5:10 PM__stripe_mid
and __stripe_sid
even without using Stripe? I notice it in my Nextjs application as well as in Supabase dev studio (also tried incognito).Borisdm
08/03/2022, 6:15 PM(organization_Id = (select profiles.organization from profiles where profiles.id = auth.uid()))
This code works for insert but I doesn't work for select. ThanksQBeast
08/03/2022, 8:06 PMTrueTrader
08/03/2022, 11:55 PMaaronksaunders
08/04/2022, 12:01 AMFailed to run sql query: function jsonb_array_elements(json) does not exist
jhegele
08/04/2022, 12:43 AMAlanK
08/04/2022, 2:47 AMquick_piper15
08/04/2022, 5:07 AMcryptosi
08/04/2022, 7:12 AMcryptosi
08/04/2022, 7:19 AMpostgres
. If I'm working on two projects and I think I have project A docker containers running so I run the migration command but its actually project B that will get blown away because it has the same namevanjmali
08/04/2022, 8:07 AMTARS
08/04/2022, 8:11 AM