Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONNECT_TIMEOUT error #851

Closed
henryzhang03 opened this issue Apr 22, 2024 · 1 comment
Closed

CONNECT_TIMEOUT error #851

henryzhang03 opened this issue Apr 22, 2024 · 1 comment

Comments

@henryzhang03
Copy link

henryzhang03 commented Apr 22, 2024

I am running this client on Bun, and upon running it, it always runs into a code "CONNECT_TIMEOUT" error on even the first request. My connection setup is:

  db = postgres(process.env.DB_CONNECTION_STRING!, {
    host: process.env.DB_HOST, // Postgres ip address[s] or domain name[s]
    port: Number(process.env.DB_PORT), // Postgres server port[s]
    database: process.env.DB_NAME, // Name of database to connect to
    username: process.env.DB_USERNAME, // Username of database user
    password: process.env.DB_PASSWORD // Password of database user
  });

I don't really know whats going on, but was wondering if I was doing something wrong or if this is a known issue.

@porsager
Copy link
Owner

it's a bug in bun if the same thing works with node 😉 #817 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants