Nathan
06/06/2022, 12:58 AM@supabase/supabase-js
for Google and Discord OAuth, and it was working for some time, but has stopped working and I am unsure why.
After authorizing, and the app has redirected, I get 404 on the session.
POST http://localhost:3000/api/_supabase/session 404 (Not Found)
and
Uncaught (in promise) FetchError: 404 Not Found (/api/_supabase/session)
at async Object.callback (supabase.client.mjs:22:7)
Any insight would help!owonwo
06/06/2022, 3:51 PMSubscriptionError: status= SUBSCRIPTION_ERROR ,error= {"reason": "error occurred when joining realtime:public:orders:rider_id=eq.4919876f-993e-4dc3-94b8-a384dedd75bd with user token
I have Replication enabled for the table and RLS off since i don't need it at the moment.owonwo
06/06/2022, 3:57 PMkonga
06/06/2022, 4:46 PMgenerateLink
returns two different object types. When I try to access the property action_link
assuming that it returns the User
type, TypeScript throws an error. How do I properly handle multiple object types?konga
06/06/2022, 5:01 PMgenerateLink
returns twoskyclo
06/06/2022, 5:37 PMfrom.update()
act like upsert()
where if the file doesn't exist in the bucket, it just adds it anyways?boolean fileOptions.upsert
Edit #2: Apparently upsert isn't working on update... using from.upload()
works with upsertowonwo
06/06/2022, 5:38 PMjaitaiwan
06/07/2022, 7:18 AM'admin' = any(roles)
with the postgresjs?garyaustin
06/07/2022, 1:10 PMBicijay
06/07/2022, 1:56 PMsixfour
06/07/2022, 2:53 PMsilentworks
06/08/2022, 10:18 AMChirag
06/08/2022, 4:54 PMChirag
06/08/2022, 4:55 PMChirag
06/08/2022, 4:58 PMgaryaustin
06/08/2022, 5:07 PMYANN
06/10/2022, 7:48 PMts
updateSummonerName(newName: string): void {
this._supabase.from("dis_accounts").update({ name: newName }).eq("id", 1);
}
But awaiting it make it work, same applies for inserting
ts
async updateSummonerName(newName: string): Promise<void> {
await this._supabase.from("dis_accounts").update({ name: newName }).eq("id", 1);
}
is there any logical explanation to it ?YANN
06/10/2022, 7:59 PMjaitaiwan
06/11/2022, 1:27 AMYANN
06/11/2022, 1:29 AMjaitaiwan
06/11/2022, 1:30 AMgaryaustin
06/11/2022, 1:46 AMbarry
06/11/2022, 6:04 AMjvocodes
06/15/2022, 11:36 PMhoesmean
06/16/2022, 5:40 PMgaryaustin
06/16/2022, 7:24 PMvikstack
06/17/2022, 11:08 AMjs
const uploadImage = async (e) => {
const file = image
const fileName = file.name
const filePath = `public/${fileName}`
const fileRef = await supabase.storage.from("testimonials-image").upload("public/image.png", file, {
cacheControl: '3600',
upsert: false
})
}
file = e => e.target.files[0]
The error code is 400. And here is what the network tab shows:SickRussel
06/17/2022, 8:20 PMSickRussel
06/17/2022, 8:24 PMconst {data, count, error} = await supabase
.from('people')
.select(`id, name`)
// First try doesn't work
// .or(`name.ilike.%${term}%`)
// .or(`city.ilike.%${term}%`)
// .or(`province.ilike.%${term}%`)
// Second try doesn't work
// .ilike('name', `%${term}%`)
// .ilike('city', `%${term}%`)
// .ilike('province', `%${term}%`)
vikstack
06/17/2022, 8:43 PM