silentworks
11/02/2021, 2:05 PMZenon
11/02/2021, 2:32 PMalx90
11/02/2021, 3:46 PM//my supabase.js in my lib folder
import { createClient } from "@supabase/supabase-js";
export const supabase = createClient(
"XXXXXXX.co",
"anaon-key"
);
and here my index.js
import { supabase } from "../lib/supabase";
export default function Home(props) {
async function getUsers() {
const { data, error } = await
supabase.from("users").select();
console.log(data);
//data: [] WHTA THE HELL XD ?!
}
useEffect(() => {
getUsers();
}, []);
return (
<div className="App">
<Head>
<title>PageBuilder - Ambitive</title>
<link rel="icon" href="/favicon.ico" />
</Head>
</div>
);
}
here is my data:
I really dont know why im getting no data 😦
I consoled.log my error nad its null so I think the request is successfully :/Scott P
11/02/2021, 5:39 PMselect("*")
nw_matt
11/02/2021, 8:17 PMgaryaustin
11/02/2021, 9:03 PMlouis.barclay
11/02/2021, 11:58 PMAirDiamond
11/03/2021, 4:49 AMIF NEW.official != null THEN
> do stuff...
> END IF;
AirDiamond
11/03/2021, 4:59 AMDOPΣ
11/03/2021, 6:28 AMjonny
11/03/2021, 6:31 AMphilbookst
11/03/2021, 9:48 AMuser
11/03/2021, 12:18 PMuser
11/03/2021, 12:19 PMM0nk3yBrainDead
11/03/2021, 1:04 PMrishav
11/03/2021, 3:02 PMegnus
11/03/2021, 10:05 PMuser
11/04/2021, 12:22 AMuser
11/04/2021, 12:22 AMuser
11/04/2021, 12:22 AMScott P
11/04/2021, 1:15 AMuser
11/04/2021, 1:58 AMuser
11/04/2021, 1:59 AMiamvp7
11/04/2021, 10:08 AMM0nk3yBrainDead
11/04/2021, 12:46 PMM0nk3yBrainDead
11/04/2021, 12:46 PMM0nk3yBrainDead
11/04/2021, 12:47 PMsilentworks
11/04/2021, 1:43 PMrchampourlier
11/04/2021, 3:33 PMPrismaClientInitializationError: Error querying the database: db error: ERROR: no more connections allowed (max_client_conn)
using Supabase PG with pgbouncer in a NextJS/Vercel deployment (with serverless functions).
I've followed Prisma serverless instructions (https://www.prisma.io/docs/guides/performance-and-optimization/connection-management#serverless-environments-faas).
I don't really see how to investigate where the issue could come from, having not much information on pgbouncer's instance.
@User ! I see you encountered the same issue, did you find a solution?
Thanks for the help!DOPΣ
11/04/2021, 6:17 PM