Worker with --remote not working (Error 1104)

Hi. Yesterday I was setting up a worker to be able to run it locally with remote resources so I can debug the code among other things. It was working fine, however, this morning didn't work. No changes in the code.
yarn wrangler -e dev dev --remote
yarn wrangler -e dev dev --remote
I can provide a Ray ID: 9354db749b4704ad
2 Replies
Ricky U
Ricky U8mo ago
why the double dev? npx wrangler dev --remote no? what error do you get -- it works for me, althought for some reason my console.logs arent shpwing up
WILDE
WILDEOP7mo ago
The -e dev is to use the variables of that specific environment. I have other projects with the same config working fine, however, this one is throwing the 1104 error code :/ Will try with npx instead Using npx wrangler dev --remote or yarn wrangler dev --remove works, but I get an error for hyperdrive
Object {
level: error,
message: Request failed,
userId: undefined,
errorMessage: Cannot read properties of undefined (reading 'connectionString'),
stack: TypeError: Cannot read properties of undefined (re…i/api/.wrangler/tmp/dev-clzMcQ/index.js:48561:17)
...
}
Object {
level: error,
message: Request failed,
userId: undefined,
errorMessage: Cannot read properties of undefined (reading 'connectionString'),
stack: TypeError: Cannot read properties of undefined (re…i/api/.wrangler/tmp/dev-clzMcQ/index.js:48561:17)
...
}
I've tried this
"hyperdrive": [
{
"id": "my_id",
"binding": "COCKROACHDB_HYPERDRIVE",
"localConnectionString": "`${WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_COCKROACHDB_HYPERDRIVE}`"
}
],
"hyperdrive": [
{
"id": "my_id",
"binding": "COCKROACHDB_HYPERDRIVE",
"localConnectionString": "`${WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_COCKROACHDB_HYPERDRIVE}`"
}
],
WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_COCKROACHDB_HYPERDRIVE is on my .dev.vars But even pasting the URL in my wrangler.jsonc doesn't work

Did you find this page helpful?