enyo
06/23/2022, 2:27 PMprofiles
table that is public and contains user profile information. I also have a invitations
table with user_id
that references auth.users.id
. No I tried to make a query and collect the profile info of the user alongside like this:
ts
await supabase
.from('invitations')
.select('*, profiles(name)')
.eq('id', invitationId)
.single()
But it fails, because Could not find a relationship between 'invitations' and 'profiles' in the schema cache
(which is understandable).
Is there a way to tell supabase that I want to link the user_id
to the profiles_id
?Needle
06/23/2022, 2:28 PM1337
06/23/2022, 3:37 PMpublic.posts
rows has image
column which is foreign key of storage.objects.id
.
As soon as I trying to query it via rest as posts?select=image(*)
it throws me error:
js
{
"message": "Could not find a relationship between 'posts' and 'image' in the schema cache",
"code": "PGRST200",
"details": null,
"hint": "Verify that 'posts' and 'image' exist in the schema 'public' and that there is a foreign key relationship between them. If a new relationship was created, try reloading the schema cache."
}
Meanwhile posts?select=image
returns UUIID from storage.objects.id
What do I missing?snoodleking
06/23/2022, 3:52 PMAudrow
06/23/2022, 4:21 PM-W
flag to force the prompt), I'm entering the database password. I've tried resetting the password and using the new password several times. I keep getting this error:
psql: error: connection to server at "db.vcbvykgybqflwpgslxio.supabase.co" (3.91.76.113), port 5432 failed: Connection refused
Any thoughts on what I'm doing wrong?maz
06/23/2022, 5:37 PMhonkstyle
06/24/2022, 12:01 AMimousart
06/24/2022, 3:07 AMWishSolidor
06/24/2022, 3:32 AMHyz
06/24/2022, 5:14 AMwilliamli
06/24/2022, 7:46 AMDarwis
06/24/2022, 8:27 AMJan Tennert
06/24/2022, 11:00 AMJupiter
06/24/2022, 11:24 AMShoki
06/24/2022, 12:32 PMjs
error Object {
"error": "",
"message": "new row violates row-level security policy for table \"objects\"",
"statusCode": "42501",
}
what should i do ?maciekChmura
06/24/2022, 12:55 PM&redirect_to=http://localhost:3000
My setup in supabase looks like this:giorgio
06/24/2022, 3:02 PMShoki
06/24/2022, 3:30 PMjs
const { data, error: dbError } = await supabase
.from("storage.objects")
.select();
i'm getting this error: "relation \"public.storage.objects\" does not exist"
, do i need to had polices to access this table ?Needle
06/24/2022, 4:59 PMmaz
06/24/2022, 5:22 PMsb
06/24/2022, 5:29 PMKeonwoo Kim
06/25/2022, 3:02 AMUnsupported Provider
error while I have enabled an OAuth login (Twitter). I have found a related discussion on GitHub (https://github.com/supabase/supabase/discussions/7402) while it says it was a server location issue. I recreated an app inside the US and again it did not work. Not only for Twitter; for Discord the same error occurred. I have set up the site URL and client configs properly (probably).battlesheep123
06/25/2022, 8:35 AMJames Q Quick
06/25/2022, 2:07 PMid
property, and 2 that are not yet records in the db. I thought I would use upsert()
for this, but it seems like upsert()
requires primary keys to already be attached to all records. Is that correct? Does that mean I need to make 2 different queries?llcooliovanillaicet
06/25/2022, 2:10 PMTLS connection failed with message: invalid peer certificate contents: invalid peer certificate: UnsupportedCertVersion
Defaulting to non-encrypted connection
PostgresError: SASL authentication failed
What is likely causing this error? How can I fix it?
My code is:
import { serve } from "https://deno.land/std@0.142.0/http/server.ts";
import * as postgres from "https://deno.land/x/postgres@v0.14.0/mod.ts";
const databaseUrl = Deno.env.get("DATABASE_URL")!;
const pool = new postgres.Pool(databaseUrl, 3, true);
const connection = await pool.connect();
try {
await connection.queryObject`
CREATE TABLE IF NOT EXISTS todos (
id SERIAL PRIMARY KEY,
title TEXT NOT NULL
)
`;
} finally {
connection.release();
}
chano08
06/25/2022, 2:52 PM[ᴛʜᴇ ᴇᴍᴘᴇʀᴏʀ]
06/25/2022, 4:49 PMcss.svg
I wanted to change that image to something else so i uploaded a new image on the bucket, which was named css (1).svg
when i uploaded it. I deleted the old file and renamed css (1).svg
to css.svg
when i open it in a new tab, i found out that the old image is still served instead of the new one
How can i fix thisBumontheRun
06/25/2022, 6:04 PM@supabase/auth-helpers-sveltekit
and can't seem to get RLS to work on API endpoints.
I have code like this:
export const get: RequestHandler = ({ locals, request }) => {
return withApiAuth({ user: locals.user }, async () => {
const response = await supabaseServerClient(request)
.from<List>('lists')
.select('*, items(*)')
.eq('user_id', locals.user.id);
return response.data;
});
};
I've confirmed locals.user
is present, and the access token is in the request cookies. However supabaseServerClient(request).auth.user()
comes back null and my response data doesn't include the items. It seems to work fine client side.
Is there something I'm missing? My hooks handler looks exactly like the guide.ChrisPBacon
06/25/2022, 6:27 PMlet { user, error } = await supabase.auth.signIn({
email: 'someone@email.com',
password: 'YyadRWzWwhPBuARgumFw'
})
And then in the auth-deep-dive doc it references the user access token
and refers to getting that when user signs in. However, simply using user
and error
won't produce any token. Only until I also include session
do I get information that looks like the JWT token.
Is this in fact the JWT that the deep-dive refers to? If so, I assume it was automatically signed with my secret JWT token?
I'm looking at ways to implement user authorizations so I'm trying to wrap my head around the processtjpoo
06/25/2022, 7:36 PM