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

Postgresql hungs infinitely on cloudflare #2779

Open
cosbgn opened this issue Oct 7, 2024 · 0 comments
Open

Postgresql hungs infinitely on cloudflare #2779

cosbgn opened this issue Oct 7, 2024 · 0 comments

Comments

@cosbgn
Copy link

cosbgn commented Oct 7, 2024

Environment

cloudflare pages & workers (I tested both).

Reproduction

Try any postgres connection, for example: https://github.com/cosbgn/pg-cloudflare/blob/main/server/api/psql.js
(email me for the password at username at gmail.)

You can test locally by running:

NITRO_PRESET=cloudflare_module npm run build
and then:
npx wrangler dev --remote .output/server/index.mjs --site .output/public --log-level debug

I think the issue is cause by nitro. On both workers dev and workers deployed it hungs forever.

I tested with multiple databases (Digital Ocean and Aiven/AWS).

Describe the bug

It just hungs forever and eventually it times out.

Additional context

No response

Logs

No response

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

No branches or pull requests

1 participant