Vik
01/08/2023, 1:27 AMgetSession
method to handle navigation. Since my profiles table has a foreign key of ID that references the auth.users table, is it possible to also grab the user profile in the initial getSession request?yayza_
01/08/2023, 2:06 AMBlobby
01/08/2023, 4:06 AMconst { data, error } = await sb_client.from(DB.ORDERS).select().like("uuid", "1ffdbd37%");
supabase fetch orders error: {
code: '42883',
details: null,
hint: 'No operator matches the given name and argument types. You might need to add explicit type casts.',
message: 'operator does not exist: uuid ~~ unknown'
}
couldn't find root cause. potentially a bug?cohlar
01/08/2023, 4:52 AMsupabase/functions
directory.
Specifically, I have a models
root directory with TypeScript types and classes that I'd like to share across my frontend and my functions.
I have tried a relative import, but get a Module not found
error.Horizon
01/08/2023, 7:13 AMshihab94
01/08/2023, 9:36 AMsupabase db reset
but I am getting this error relation pgsodium.decrypted_key does not exist
I've checked the db and I can see that the pgsodium
extension is installed. What I did to solve this issue temporarily is commenting the lines that cause this error in the migration file:
--
-- Name: TABLE "decrypted_key"; Type: ACL; Schema: pgsodium; Owner: supabase_admin
--
-- GRANT ALL ON TABLE "pgsodium"."decrypted_key" TO "pgsodium_keyholder";
--
-- Name: TABLE "masking_rule"; Type: ACL; Schema: pgsodium; Owner: supabase_admin
--
-- GRANT ALL ON TABLE "pgsodium"."masking_rule" TO "pgsodium_keyholder";
--
-- Name: TABLE "mask_columns"; Type: ACL; Schema: pgsodium; Owner: supabase_admin
--
-- GRANT ALL ON TABLE "pgsodium"."mask_columns" TO "pgsodium_keyholder";
I am not sure if these lines are very important and I want to know there is a way to resolve this issue.manojVivek
01/08/2023, 10:57 AMsession
data to the electron app and calling client.auth.setSession(access_token, refresh_token)
which successfully return the user info.
But any subsequent call to client.auth.getSession()
returns the session as null
.
Any idea what am I doing wrong that the session passed through setSession
is not getting persisted in the supabase client instance.
Here is the code in case that helps:
supabase.auth
.setSession({
access_token: session.access_token,
refresh_token: session.refresh_token,
}).then(sessionData => {
console.log(sessionData); // has valid data.
console.log(supabase.auth.getSession()); // prints null session.
};
Appreciate any ideas on this.Temzin
01/08/2023, 10:59 AMbengra
01/08/2023, 11:40 AMMarius.Dmn
01/08/2023, 12:44 PMSarcodo
01/08/2023, 1:28 PMCenezo
01/08/2023, 1:49 PMsupabase-kong | 172.23.0.1 - - [08/Jan/2023:13:43:49 +0000] "GET /websocket?apikey=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE&eventsPerSecond=10&vsn=1.0.0 HTTP/1.1" 404 48 "-" "-"
realtime-dev.supabase-realtime | 13:43:50.218 project=realtime-dev external_id=realtime-dev [error] Auth error: {:error, :signature_error}
supabase-kong | 172.23.0.1 - - [08/Jan/2023:13:43:50 +0000] "GET /realtime/v1/websocket?apikey=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJhbm9uIiwKICAgICJpc3MiOiAic3VwYWJhc2UtZGVtbyIsCiAgICAiaWF0IjogMTY0MTc2OTIwMCwKICAgICJleHAiOiAxNzk5NTM1NjAwCn0.dc_X5iR_VP_qT0zsiyj_I_OZ2T9FtRU2BBNWN8Bu4GE&vsn=1.0.0 HTTP/1.1" 403 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
bob_the_robot
01/08/2023, 1:59 PMpublic
Policy set to it. The table has 50 rows & 142 columns and I can view the data in the Supabase admin UI.
Seems I am fundamentally missing something or there is a switch that I haven't toggled in the UI. Any help is appreciated.millennialbets.eth
01/08/2023, 3:55 PMpkdiscgolf
01/08/2023, 4:54 PMRumen
01/08/2023, 5:41 PMJakob
01/08/2023, 6:05 PMPeltos
01/08/2023, 6:25 PMeventually-consistent
01/08/2023, 6:38 PMYourAverageTechBro
01/08/2023, 7:23 PMchickenmcnooble
01/08/2023, 8:22 PMjs
import { createClient } from '@supabase/auth-helpers-sveltekit'
import { PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY } from '$env/static/public';
export const supabaseClient = createClient(PUBLIC_SUPABASE_URL, PUBLIC_SUPABASE_ANON_KEY)
However when i try to run the dev enviroment i get the following error
TypeError: Cannot read properties of undefined (reading 'createClient')
at /home/chicken/projects/qrdocentdashboard/src/lib/db.ts:5:30
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async instantiateModule (file:///home/chicken/projects/qrdocentdashboard/node_modules/vite/dist/node/chunks/dep-5e7f419b.js:52224:9)
I would really appreciate some guidance if anyone knows what the issue is. Thank you !YourAverageTechBro
01/08/2023, 8:57 PM"Error: Failed to update an existing Function's body on the Supabase project: {"message":"The function size exceeds the allowable limit"}"
I think it is because I am trying to import the Facebook SDK — is there any best practice to reduce decrease function size?hyperknot
01/08/2023, 9:24 PMdaniromo
01/08/2023, 9:42 PMyairhaimo
01/08/2023, 9:56 PManggoran
01/09/2023, 12:42 AMBEFORE DELETE TRIGGER
on my public.documents
. But when I tried with document_id = old.id
or document_id = new.id
, it didn't work, did I miss something? When I tried with hard coded id, it works though
sql
BEGIN
DELETE FROM public.logbooks
WHERE document_id = 27;
RETURN new;
END;
pasha_dee
01/09/2023, 4:46 AMSep
01/09/2023, 5:03 AMconst { data, errpr } = await supabase.from("connections").select().or("from.eq." + id, "to.eq." + id);
This code returns data that matches the first filter I provide, "from.eq", not "to.eq". If I reversed, the filters, it would still filter by the first one provided. e.g.:
const { data, errpr } = await supabase.from("connections").select().or("to.eq." + id, "from.eq." + id);
How do I achieve this sort of filtering? I've attempted to chain filters like this using the library?sinrabo
01/09/2023, 5:19 AM