Wrangler 4.50.0 breaking (?) Hyperdrive connections

I suspect that this:
https://github.com/cloudflare/workers-sdk/pull/11219
Potentially caused an issue with Hyperdrive connections not working and they crash in this version of Wrangler and newer.
Error:
Error: read ECONNRESET
at TCP.onStreamRead (node:internal/stream_base_commons:216:20) {
errno: -4077,
code: 'ECONNRESET',
syscall: 'read'
}

As soon as I remove Hyperdrive and use the raw connection string for the database, it does not crash.

I am on Windows 11 x64
image.png
GitHub
Fixes SQC-652.
This fixes the problem of when a user runs
npx wrangler dev
with a Hyperdrive binding and localConnectionString pointing to a database that requires TLS. In such cases, the command w...
Was this page helpful?