beist
01/29/2023, 12:08 PMGuus Iwanow
01/29/2023, 12:20 PMmrmikardo
02/07/2023, 12:24 PMthecatatafish
01/29/2023, 1:46 PMiamallin
01/29/2023, 3:34 PMLucass
01/29/2023, 3:47 PMJaaneek
01/29/2023, 3:51 PMStrikerzs
01/29/2023, 5:08 PMpsql
(and ultimately use it in Mikro ORM). I can connect to pgbouncer using the default databases postgres
using `psql`: psql -h ... -p 6543 -d postgres -U postgres
, however, if I change the database to my own database psql -h ... -p 6543 -d my_database -U postgres
I get:
psql: error: connection to server at "..." (...), port 6543 failed: FATAL: bouncer config error
connection to server at "..." (...), port 6543 failed: FATAL: bouncer config error
I have pgbouncer enabled on my dashboard. How can I fix this?natespilman
01/29/2023, 8:16 PMAuthentication > Users
page, the link I am emailed does not render, and instead throws the following error - `{"message":"No API key found in request","hint":"No apikey
request header or url param was found."}`
Once I've landed on the page, though, my User
now shows as verified, but I've never set my password. When I send myself a password reset email, I get the same error.
Does anyone know how I can resolve this? re: the No API key
error, I'm using Supabase for db, and I'm having no issues.Irfan Ahmed
01/29/2023, 8:32 PMGKL
01/29/2023, 8:32 PMCody
01/29/2023, 9:03 PMsupabase db reset
which re-runs my migrations and applies the seed.sql
file, which includes a few test users. The very first time I try to authentication with any of the users, I get the following error: Database error querying schema
. And in the auth
logs, I see this
{"component":"api","level":"info","method":"POST","msg":"request started","path":"/token","referer":"http://localhost:3300/","remote_addr":"172.27.0.1","time":"2023-01-29T21:01:57Z","timestamp":"2023-01-29T21:01:57Z"}
{"component":"api","error":"error finding user: FATAL: terminating connection due to administrator command (SQLSTATE 57P01)","level":"error","method":"POST","msg":"500: Database error querying schema","path":"/token","referer":"http://localhost:3300/","remote_addr":"172.27.0.1","time":"2023-01-29T21:01:57Z","timestamp":"2023-01-29T21:01:57Z"}
The user does exist because if I resubmit the same credentials just moments after the first attempt, it authenticates fine.
Any thoughts?declanmiddleton
01/29/2023, 9:53 PMjs
e.preventDefault();
try {
const { data, error } = await supabase.auth.signUp({
email,
password,
});
if (error) throw error;
// the issue is here, how do i write this properly.
if (error.status === 409) {
alert("user already exists");
} else {
throw error;
}
alert("signup successful");
navigate("/login");
console.log(data);
} catch (error) {
console.log(error);
}
};
fsargent
01/29/2023, 10:22 PMDbugger
01/29/2023, 10:23 PMPeach-Flavored Snark
01/29/2023, 11:32 PMsupabase functions serve hello-world
I'd like to run some of these edge functions on my local supabase instance for debugging and dev work, but I'm running into this odd issue.
error: error sending request for url (https://deno.land/std@0.168.0/http/server.ts): error trying to connect: dns error: failed to lookup address information: Temporary failure in name resolution
at file:///home/deno/functions/hello-world/index.ts:5:23
My first instinct was to google and stare at the post below:
https://github.com/denoland/deno/issues/6061
It sounds like I need to set the HTTP_PROXY and HTTPS_PROXY as environment variables? If that is the case, what values should I be inputting for them?Vince
01/30/2023, 1:44 AMsupabase-service.json
and firebase-service.json
to the firestore
folder. However, I can't seem to dump the collections already. The collections.js script correctly I identified that I have 3 collections, but 0 records were written to the collections json file I created so I can't import the JSON to Supabase at all.
(base) Vincents-MacBook-Pro:firestore vincentlu$ node collections.js
customers
products
recordings
(base) Vincents-MacBook-Pro:firestore vincentlu$ node firestore2json.js audioExampleExpoCollection
0 records written to audioExampleExpoCollection.json
(base) Vincents-MacBook-Pro:firestore vincentlu$
Any insight that might help here?Vince
01/30/2023, 2:22 AMdownload
folder in ./storage
). However when I ran the upload script it complained that export
is an unexpected token, which I think came from supabase-keys.js
which is copied from supabase-keys-sample.js
. I kept supabase-keys-sample.js
because I figured I might keep an original copy in case something goes wrong. If the scripts can be fixed, that would be great, because I didn't touch supabase-keys.js
other than entering the project URL and the service_role key. Otherwise, what went wrong here??
Here's the command I tried below:
(base) Vincents-MacBook-Pro:storage vincentlu$ node upload.js "" downloads <bucket name I created>
/Users/<path>/firebase-to-supabase/storage/supabase-keys.js:14
export const keys = {
^^^^^^
SyntaxError: Unexpected token 'export'
at wrapSafe (internal/modules/cjs/loader.js:984:16)
at Module._compile (internal/modules/cjs/loader.js:1032:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/Users/<path>firebase-to-supabase/storage/upload.js:41:23)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
(base) Vincents-MacBook-Pro:storage vincentlu$
sean.s
01/30/2023, 2:56 AM/auth/v1/user
, which made me think it could be a react strict mode issue. Disabling strict mode does in fact eliminate the issue in the video linked above.
Curious if this is some issue with my project configuration or if it's a known incompatibility/bug with the auth-helpers repo?AlanK
01/30/2023, 4:26 AMCREATE OR REPLACE FUNCTION public.get_agent_for_user(id_input UUID)
RETURNS TABLE(agent_name text, agent_mobile text, agent_phone text, created_at timestamptz)
LANGUAGE 'plpgsql'
COST 100
VOLATILE SECURITY DEFINER PARALLEL UNSAFE
ROWS 1000
SET search_path= public
AS $BODY$
begin
return query select coalesce(a.agent_name, 'Null') as agent_name,
coalesce(a.agent_mobile, 'Null') as agent_mobile,
coalesce(a.agent_phone, 'Null') as agent_phone, coalesce(a.created_at, NULL) as created_at from public.agent a inner join
(select property_rented from public.property_profile p inner join public.user_property_profile_join up
on p.id = up.property_id where up.user_id = id_input) upj on a.id = upj.property_rented;
end;
$BODY$;
When I call the function from javascript I get an undefined object as a result (if there is no Agent for the property).
Is there a way I can get the function to return a row with NULLs, or empty strings, instead of a null?TradeUpCards
01/30/2023, 7:00 AMSagron
01/30/2023, 7:28 AMEinar Persson
01/30/2023, 8:16 AMdraco
01/30/2023, 8:45 AMres is not defined
. hAs anyone seen this? It goes await if I don't use the await but then I can't access the request body passed into the function.Lukas V
01/30/2023, 9:06 AMJamesB
01/30/2023, 9:26 AMJamesB
01/30/2023, 9:31 AMbilals
01/30/2023, 10:28 AM*
)
> .match({
> `location_function(geo, ${location.longitude}, ${location.latitude})`:
> true
> })
I am getting this error:
> {
> code: "42703",
> message: "column my_custom_view1.location_function does not exist"
> }
Anyone have similar use case and can help me on this?YokoWasis
01/30/2023, 11:48 AMEvostance
01/30/2023, 12:21 PM