Hyperdrive fails to connect in `scheduled()` (but works over HTTP)
The same worker either will or won't connect to my Hyperdrive DB depending on whether I invoke it over HTTP (will) or CRON( won't). I'm experiencing this while testing locally, with the
Specifically, I get:
In my DB handler, I put the following:
Over HTTP, I get:
Over CRON, I get (via the
Accordingly, DB queries work over HTTP but I get errors on CRON. Here's how I specify my DB in
Here's what runs when I run
Here's what then comes up (see image below). As you can see, my Hyperdrive DB is there.
Any help appreciated
--remote flag enabled.Specifically, I get:
In my DB handler, I put the following:
Over HTTP, I get:
Over CRON, I get (via the
--test-scheduled flag and the /__scheduled endpoint):Accordingly, DB queries work over HTTP but I get errors on CRON. Here's how I specify my DB in
dev.toml:Here's what runs when I run
npm run dev:Here's what then comes up (see image below). As you can see, my Hyperdrive DB is there.
Any help appreciated
