Next.js Discord

Discord Forum

not able to connect to neondb

Unanswered
Exotic Shorthair posted this in #help-forum
Open in Discord
Exotic ShorthairOP
I am following this cookbook:
https://ai-sdk.dev/cookbook/guides/natural-language-postgres

and run into this error
natural-language-postgres git:(starter) pnpm run seed

> natural-language-postgresql@0.0.0 seed /Users/e/Desktop/natural-language-postgres
> tsx lib/seed.ts

NeonDbError: Error connecting to database: fetch failed
    at execute (/Users/e/Desktop/natural-language-postgres/node_modules/.pnpm/@neondatabase+serverless@0.9.5/node_modules/@neondatabase/serverless/index.js:1548:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async seed (/Users/e/Desktop/natural-language-postgres/lib/seed.ts:20:23) {

8 Replies

Exotic ShorthairOP
Exotic ShorthairOP
would be great to get unblocked on this
Exotic ShorthairOP
still blocked on this :/
A windows issue
try using wsl
with networkingmode mirrored
Exotic ShorthairOP
@Anay-208 | Ping in replies i am on mac.
Can you try increasing database timeout