Hi! Is this still the case? Might face this issue when trying to connect with a neon dev branch.
Hi! Is this still the case? Might face this issue when trying to connect with a neon dev branch.
npx wrangler dev --remote, where your Workers are run in Cloudflare and that will allow you to connect to your remote databasemapFound: true on occasion. Logging in pages functions is very limited, but we we were able to reproduce the bug by barraging the API with requests until it falsely returns mapFound: true.maps table doesn't change often - a few modifications a day at best. Seems like a hyperdrive bug to me, but I don't have any evidence to support it except for the info provided above.map.geoguessrId !== params.geoguessrId as a bandaid fix in a desperate attempt to fix it and it seems to be doing the trick. No idea what map object is being returned, logging would really help PostgresError: Internal error from Hyperdrive.
cloudflared running in a docker container and the postgres bitnami contianer running but keep receiving this error when creating my hyperdrive config via Pulumi with v6.1.0:prepare: false and prepare: true and neither seem to make a big difference to the times...npx wrangler dev --remoteConnection lost: The server closed the connection.const map = await db.query.maps.findFirst({
where: eq(maps.geoguessrId, params.geoguessrId)
});
if (!map) {
return json({ mapFound: false }, { status: 404 });
}
return json({
mapFound: true
});mapFound: truemapFound: truemapsmap.geoguessrId !== params.geoguessrIdPostgresError: Internal errorfailed to make http request: POST "https://api.cloudflare.com/client/v4/accounts/<redacted>/hyperdrive/configs": 400 Bad Request {
"result": null,
"success": false,
"errors": [
{
"code": 2011,
"message": "Network connection to the provided database was refused. Please check the that host and port are correct and that the database allows connections from public IP addresses
."
}
],
"messages": null
}await sql`select 'hello' as "message";`await sql`select ${'hello'} as "message";`prepare: falseprepare: true