DT
Drizzle Team•14mo ago
adrtivv

drizzle studio blank screen

the behaviour is same on both firefox and brave(shields disabled), so doesn't seem like a browser problem.
No description
No description
7 Replies
Darth_Fuzzy
Darth_Fuzzy•13mo ago
what does your configuration look like for your db connection? 429 is a rate limit issue in general 🤔
adrtivv
adrtivvOP•13mo ago
// dotenv required for `drizzle-studio push:pg`
import dotenv from "dotenv";
dotenv.config();
import type { Config } from "drizzle-kit";

export default {
driver: "pg",
dbCredentials: {
connectionString: process.env.DATABASE_URL!,
},
out: "./migrations",
schema: "./src/db/schema.ts",
// this field needed when using `drizzle-studio push:pg` dunno why
schemaFilter: "schemaOne",
} satisfies Config;
// dotenv required for `drizzle-studio push:pg`
import dotenv from "dotenv";
dotenv.config();
import type { Config } from "drizzle-kit";

export default {
driver: "pg",
dbCredentials: {
connectionString: process.env.DATABASE_URL!,
},
out: "./migrations",
schema: "./src/db/schema.ts",
// this field needed when using `drizzle-studio push:pg` dunno why
schemaFilter: "schemaOne",
} satisfies Config;
I'm using a local database btw, booted up in a podman container and yeah it does work with the drizzle client so I don't think the config has any issue.
postgresql://username:password@localhost:5432/postgres_db?search_path=schemaOne
postgresql://username:password@localhost:5432/postgres_db?search_path=schemaOne
Darth_Fuzzy
Darth_Fuzzy•13mo ago
i have no idea what schemaOne is, but my connection string has the query params of sslmode=require&pgbouncer=true on it. also I have a tablesFilter: ["myprojectname_*"], defined in the config
adrtivv
adrtivvOP•13mo ago
PostgreSQL Documentation
5.9. Schemas
5.9. Schemas # 5.9.1. Creating a Schema 5.9.2. The Public Schema 5.9.3. The Schema Search Path 5.9.4. Schemas and Privileges 5.9.5. …
adrtivv
adrtivvOP•13mo ago
GitHub
drizzle kit studio does not work when public schema has no tables ·...
All of my table are in non public schema and this seems to trip drizzle kit up
LiquiFruit
LiquiFruit•13mo ago
Can confirm this is happening to me using Drizzle + Turso/SQLite. Just found out that this happened in Chrome but not Edge. Could be worth testing.
Ibnu Rasikh - creatypestudio.co
went the same problem, the solution i get is just activate or deactivate Cloudflare WRAP or 1.1.1.1, maybe someone else have the same condition with me (dunno why it's affect)
Want results from more Discord servers?
Add your server