Wrangler is throwing "connection terminated unexpectedly" errors for my Postgres DB
I have an hyperdriveHeroku Postgres SSL Errors with Wrangler being weird about connecting to DBs from my machine. Today I've started getting
This only happens when using the DB within Wrangler. I have another, non-Wrangler app that connects to the same DB in the same way and via the same connection string, and it's fine. The DB is up, and showing no signs of issues.
Here's the util my controllers call to connect to and run a query on my DB:
The DB connection string is in my TOML under
If I
Sorry if this is not related to Wrangler but as I say, it's not happening in non-Wrangler setups with the same DB connection code.
Any idea what might be up?
Error: Connection terminated unexpectedly from Postgres.This only happens when using the DB within Wrangler. I have another, non-Wrangler app that connects to the same DB in the same way and via the same connection string, and it's fine. The DB is up, and showing no signs of issues.
Here's the util my controllers call to connect to and run a query on my DB:
The DB connection string is in my TOML under
[[Hyperdrive]].If I
console.log(client) right after connecting, it shows readyForQuery: true. But when I then run a query, I get this error.Sorry if this is not related to Wrangler but as I say, it's not happening in non-Wrangler setups with the same DB connection code.
Any idea what might be up?