-
Notifications
You must be signed in to change notification settings - Fork 57
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
postgresjs on cloudflare runs into timeout #272
Comments
I think you forgot to add a binding for Hyperdrive. https://developers.cloudflare.com/hyperdrive/get-started/#4-bind-your-worker-to-hyperdrive |
I was tested it without Hyperdrive first. Idk that adding Hyperdrive makes a difference. |
Did it succeed without Hyperdrive? Anyway, you should add the Hyperdrive binding setting to the |
Well the connectionstring to the db is correct. Adding Hyperdrive made no difference. It works in hono. Just in honox there is a freeze and wrangler kills the request after 30s. |
Hmm. Can you share a minimal project to reproduce it? |
What version of HonoX are you using?
0.1.38
What steps can reproduce the bug?
Calling postgresjs in the handler or middleware will cause a timeout problem.
I couldn't find the cause. I tried to connect to a hosted neon postgres instance.
Here are the logs
`
✘ [ERROR] write CONNECT_TIMEOUT undefined:undefined
[InspectorProxyWorker] RUNTIME INCOMING MESSAGE {
method: 'Runtime.consoleAPICalled',
params: {
type: 'error',
args: [ [Object] ],
executionContextId: 193935137,
timestamp: 1741482145606,
stackTrace: { callFrames: [Array] }
}
}
[wrangler-ProxyWorker:inf] GET / 500 Internal Server Error (30035ms)
`
I tested it just with hono -> works
In honox I replaced postgresjs with
@neon/serverless
and that works too.I would like to use postgresjs because it works with cf hyperdrive (neon will not).
The minimal case is simple to reproduce.
Thanks
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: