JBarcelo
05/06/2023, 3:07 PMhttps://cdn.discordapp.com/attachments/1104424127856656444/1104424128200581302/Captura.PNG▾
alitnk
05/06/2023, 3:10 PM{
"error": "invalid_grant",
"error_description": "Invalid Refresh Token: Already Used"
}
Wondering if need to do anything to further sync the two auth states... any ideas?Shelby
05/06/2023, 4:34 PMhttps://cdn.discordapp.com/attachments/1104446009272184982/1104446009515458630/image.png▾
Mhd Adnan Askar
05/06/2023, 5:36 PMpuffybatman
05/06/2023, 6:00 PMgoldyman
05/06/2023, 7:15 PMdmayo2
05/06/2023, 7:20 PMcontent
to one name
. The meta-data is kept in table3 when name
was created, and each name
can have as many `tag_name`s and the user configures.
Those are the fields I want to create the search on. I'm using JS library v2.
Thanks.ven
05/06/2023, 7:31 PMDownload https://esm.sh/v119/oak@9.0.0/X-ZS8q/esnext/oak.mjs
Download https://esm.sh/v119/node_process.js
Download https://esm.sh/v119/commander@2.19.0
Download https://esm.sh/v119/lodash@4.17.21
Download https://esm.sh/error.js?type=unsupported-nodejs-builtin-module&name=module&importer=oak
Download https://esm.sh/v119/path-browserify@1.0.1/esnext/path-browserify.bundle.mjs
Download https://esm.sh/v119/url@0.11.0/esnext/url.bundle.mjs
Download https://esm.sh/v119/node_events.js
Download https://esm.sh/v119/querystring-es3@0.2.1/esnext/querystring-es3.bundle.mjs
Download https://esm.sh/v119/punycode@2.3.0/esnext/punycode.bundle.mjs
worker thread panicked Import 'https://esm.sh/error.js?type=unsupported-nodejs-builtin-module&name=module&importer=oak' failed: 500 Internal Server Error
Error: channel closed
at async UserWorker.fetch (ext:sb_user_workers/user_workers.js:50:21)
at async Server.<anonymous> (file:///home/deno/main/index.ts:102:16)
at async Server.#respond (https://deno.land/std@0.182.0/http/server.ts:220:24)
failed to send the halt execution signal
failed to send the halt execution signal
https://cdn.discordapp.com/attachments/1104490594715308192/1104490594853728287/supabase_error.png▾
ven
05/06/2023, 8:20 PMError: Error bundling function: exit status 1
file:///src/import_map.json
file:///src/index.ts
file:///_services/contactMeService.ts
file:///_shared/cors.ts
file:///_shared/types.ts
file:///types/db_types.ts
error: Uncaught (in promise) Error: NotFound: The system cannot find the path specified. (os error 3)
const ret = new Error(getStringFromWasm0(arg0, arg1));
^
at __wbg_new_8d2af00bc1e329ee (https://deno.land/x/eszip@v0.35.0/eszip_wasm.generated.js:513:19)
at <anonymous> (https://deno.land/x/eszip@v0.35.0/eszip_wasm_bg.wasm:1:1559899)
at <anonymous> (https://deno.land/x/eszip@v0.35.0/eszip_wasm_bg.wasm:1:1398157)
at <anonymous> (https://deno.land/x/eszip@v0.35.0/eszip_wasm_bg.wasm:1:1895031)
at __wbg_adapter_40 (https://deno.land/x/eszip@v0.35.0/eszip_wasm.generated.js:229:6)
at real (https://deno.land/x/eszip@v0.35.0/eszip_wasm.generated.js:213:14)
https://cdn.discordapp.com/attachments/1104502850131865751/1104502850459013120/remote_logs.png▾
Hugos
05/06/2023, 8:45 PMcartcolombia
05/06/2023, 9:07 PMHexye
05/06/2023, 10:49 PMNin
05/06/2023, 11:54 PMven
05/07/2023, 12:32 AMSetting up Edge Functions runtime...
v1.2.18: Pulling from supabase/edge-runtime
26c5c85e47da: Pull complete
3b5266c51eeb: Pull complete
ea9f73b5bab7: Pull complete
Digest: sha256:8ceef4bcbb1f7b437eb9522e8d5df9ca9d1f05922181baf4f97bf86ecfaa7419
Status: Downloaded newer image for public.ecr.aws/supabase/edge-runtime:v1.2.18
Serving functions on http://localhost:19741/functions/v1/<function-name>
serving the request with /home/deno/functions/slack
Listening on http://localhost:9999/
TypeError: Invalid URL: ''
at getSerialization (ext:deno_url/00_url.js:74:11)
at opUrlParse (ext:deno_url/00_url.js:65:10)
at new URL (ext:deno_url/00_url.js:368:27)
at new Request (ext:deno_fetch/23_request.js:323:25)
at ext:deno_fetch/26_fetch.js:418:27
at new Promise (<anonymous>)
at fetch (ext:deno_fetch/26_fetch.js:414:18)
at Server.<anonymous> (file:///home/deno/functions/slack/index.ts:39:18)
at async Server.#respond (https://deno.land/std@0.186.0/http/server.ts:220:24)
Ar
05/07/2023, 2:02 AM{
"code": "23505",
"message": "duplicate key value violates unique constraint \"identities_pkey\"",
"detail": "Key (provider, id)=(email, 64d7ef47-92f7-406f-9857-06854101f887) already exists."
}
Which makes sense as updateUser with email will try to create a new identity, because the user's email field is empty. but there is already one even though it is not confirmed.Tin
05/07/2023, 3:57 AMasync function checkEmailIsAvailable(email: string) {
const { data, error } = await supabase.rpc("f_is_email_available", {
_email: email,
});
console.log("email", data);
console.log("email:", error)
}
and here is the script
create or replace function f_is_email_available(_email text)
returns boolean as
$$
begin
return not exists (select 1 from profiles p where p.email ILIKE _email);
end;
$$
language plpgsql
Regardless of what value i pass in via using rpc, i always get true while calling the function in sql editor, it returns the correct boolean value. I feel like it is something very simple but I am just overlooking it. Thank you much in advance.codedao
05/07/2023, 5:41 AMpublic
and storage
schema. But the uploaded objects are still there. Is there a script to delete/clear them?ef
05/07/2023, 6:19 AMMadz
05/07/2023, 8:25 AMWizzel
05/07/2023, 8:52 AMsql
-- 1. Allow public access to any files in the "public" bucket
create policy "Public Access"
on storage.objects for select
using ( bucket_id = 'public' );
but I don't quite understand how this is different from a bucket that is set to "Public" from the UI.Philipp_Nut
05/07/2023, 9:30 AMhttps://cdn.discordapp.com/attachments/1104701769113682001/1104701769776365618/image.png▾
0xAsimetriq
05/07/2023, 10:21 AMNative Apple login on iOS
section it states that the only requirement to enable this is to provide "iOS bunlde id".
However, it seems that as of now, supabase's dashboard does not account for this as it throws an error uppon saving asking to fill out all other fields.Logaritma26
05/07/2023, 10:59 AMraw_app_meta_data
but there is a similar field called raw_user_meta_data
I wonder whats the difference and what can raw_user_meta_data be used forPhilipp_Nut
05/07/2023, 1:03 PMRevaycolizer
05/07/2023, 1:07 PMconst fetchPosts=useCallback(async()=>{
const { data:files } = await supabase
.storage
.from('files')
.list()
if(files && files.length>0){
const promises = files.map(async(file)=>{
const post = supabase.storage.from('files').getPublicUrl(file.name, {
transform: {
width: 500,
height: 600,
},
})
return post.data
})
const posts = await Promise.all(promises)
setDownload(posts)
}
},[])
Biki
05/07/2023, 2:25 PMola berglund
05/07/2023, 2:28 PMhttps://cdn.discordapp.com/attachments/1104776665340596366/1104776665625800714/either.png▾
rafael
05/07/2023, 3:01 PMYuu
05/07/2023, 3:28 PMsql
CREATE OR REPLACE FUNCTION public.handle_new_user()
RETURNS trigger
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path TO 'public'
AS $function$
begin
insert into public.profiles (id)
values (new.id);
return new;
end;
$function$;
CREATE TRIGGER on_auth_user_created AFTER INSERT ON auth.users FOR EACH ROW EXECUTE FUNCTION handle_new_user();
When this row is inserted, I want to make a call to dicebear, generate an avatar, upload it to storage and set the url to profile.avatar
. Of course, the user will be given an option to change it during the onboarding process so I don't want to put it after the onboarding (if they haven't selected one)mikel
05/07/2023, 4:19 PM