Neyunse
11/23/2022, 12:58 AMtubbo
11/23/2022, 1:54 AMvenue.location
which is configured to be a geometry(point)
in my schema. however, supabase returns this data as the "WKB" representation, e.g. 0101000020E6100000FB05BB61DBFA4340983270404BCA52C0
. i'm trying to parse this out to be a GeoJSON object but coming up short with all the libs i chose. how do most people convert this object into something useful?joshwerner
11/23/2022, 5:18 AMError sending confirmation email: 534 5.7.9 Application-specific password required. Learn more at
5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor c8-20020ac853c8000000b003972790deb9sm9300032qtq.84 - gsmtp
What does it mean by "Application-specific password required"? How can I create one? I've tried following the instructions in the link provided (https://support.google.com/mail/?p=InvalidSecondFactor) but have no option for creating an App Password.
If anyone can help me out it would be much appreciated!stukennedy
11/23/2022, 10:49 AMsupabase.auth.setSession(...)
, so when I call supabase.auth.getUser()
it returns the correct user.
But calls to the DB return empty unless I turn RLS off on the table.
Any idea what's going on here? I'm assuming the JWT isn't getting to supabase on the request, but assumed setSession
would take care of that.zicho
11/23/2022, 2:25 PMHermes
11/23/2022, 2:46 PMNin
11/23/2022, 4:21 PM{
"code": "PGRST116",
"details": "Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row",
"hint": null,
"message": "JSON object requested, multiple (or no) rows returned"
}
Code: javascript
const [wishlist] = createResource(
() =>
from('wishlists')
.select('uuid, name, description, wishlist_items!inner(*)')
.maybeSingle() as any,
)
Gerson E. Aguirre
11/23/2022, 4:28 PMDaniel Sosebee
11/23/2022, 4:47 PMSmardrengr
11/23/2022, 5:58 PMplayer
joins a game, the players_conf
(confirmed) column in the games
record updates to reflect all players who have joined. But... it's not happening. And I'm not sure why. It was working before, but not anymore. Any ideas? Not seeing any errors client-side—like, the player record is being created...
begin
update games set players_conf = (select sum(players.num) AS num from players where players.game_id = NEW.game_id group by players.game_id) where games.id = NEW.game_id;
return NEW;
end;
Cheqo
11/23/2022, 6:18 PMuseEffect(() => {
if (user && cookies.affiliate) {
supabase
.from('users')
.update({ referred_by: cookies.affiliate })
.eq('id', user.id);
}
}, [user, cookies]);
I don't need to present user with anything, if it fails it fails, but I just don't want my app to crash.arzy
11/23/2022, 9:51 PMERROR: duplicate key value violates unique constraint "users_email_key" (SQLSTATE 23505)
We are just trying to get allow the user to connect with both twitter and discord at the same time. Looking at github discussions, it seems that a user should be able to do this if their emails are the same but it seems to be the opposite for us.Smardrengr
11/23/2022, 10:01 PMauth helpers
return session
, as part of data
, e.g.
return {
games,
user: session.user
};
which is then available to +page.svelte
via
export let data: PageData;
$: ({ games, user } = data);
What I would like to do is store user
in a Svelte store so that components that don't live at +page.svelte
can access user without prop drilling. Wondering how you people are perhaps doing this?Trixrabbit
11/23/2022, 11:47 PManon
and service_role
key and I can't figure out how to configure this (Sorry for the noob question, I probably missed something obvious, this is my first solo app)BarefootDev
11/24/2022, 4:09 AMsupabaseClient.auth.signUp({ email, password });
giancarlo
11/24/2022, 10:59 AMxax948
11/24/2022, 1:10 PMczypnt
11/24/2022, 1:39 PMantoniojps
11/24/2022, 3:49 PMjson
{
"code": "PGRST202",
"details": null,
"hint": "If a new function was created in the database with this name and parameters, try reloading the schema cache.",
"message": "Could not find the public.graphql() function in the schema cache"
}
Any clue how to reload schema cache in supabase?
Anyway to resolve this?MDobs
11/24/2022, 3:54 PMsession: null
and we see that the /auth/v1/token
is returning 400 and /auth/v1/admin/users
422
on the edge function logs.
What could be wrong?damian_w
11/24/2022, 5:30 PMinvalid claim: missing sub claim
. When i use console.log on setSession there are active user details information. I try set persistSession from this thread (https://discord.com/channels/839993398554656828/1042260964646588516/1042260964646588516) to false but this bug still effect.tdhyunk
11/24/2022, 6:22 PMKrisGunnars
11/25/2022, 1:54 AMiStun4Fun
11/25/2022, 1:43 PMd4
11/25/2022, 3:49 PMzeyad
11/26/2022, 8:28 PMChunkyLubie
11/27/2022, 1:47 AMnew row violates row-level security policy for table "objects"
Any ideas why this is error is being thrown?bongjovi
11/28/2022, 11:10 AMDYELbrah
11/29/2022, 12:53 AMcreate trigger on_auth_user_created
after insert on auth.users
for each row execute procedure public.handle_new_user();
The trigger exists in my supabase hosted DB, however my migrated local instance does not contain it. I also do not see the trigger in the migration file.
Any idea why I it didn't automatically add it to the migration file?
I also attempted running
supabase db diff --use-migra --linked
This was unsuccessful as it did not find any differences. Thank you in advance.mojogogo
12/01/2022, 1:14 AM.env.local
file contains the value for MY_NAME
, but unable to read the value using
console.log(Deno.env.get('MY_NAME')).
if run by
supabase functions serve add-project, console.log(Deno.env.get('MY_NAME'))
it prints undefined,
and if run via command
supabase functions serve add-project --env-file ./supabase/.env.local
it throws an error of : Error: Can't separate key from value.
The same issue is described in more detail here with screenshots:
https://github.com/supabase/supabase/discussions/8075
Has anybody else run into this? Any suggestions would be appreciated.
Thanks!