Issue with wrangler dev --remote

I have a new employee, and they are having trouble deploying to remote with workers:
Total Upload: 938.60 KiB / gzip: 185.17 KiB
✘ [ERROR] Error on remote worker: APIError: A request to the Cloudflare API (/accounts/.../workers/scripts/just-worker/edge-preview) failed.

at throwFetchError
(/Users/.../src/just-worker/node_modules/wrangler/wrangler-dist/cli.js:159817:18)
at fetchResult
(/Users/.../src/just-worker/node_modules/wrangler/wrangler-dist/cli.js:159730:5)
at process.processTicksAndRejections
(node:internal/process/task_queues:105:5)
at async createPreviewToken
(/Users/.../src/just-worker/node_modules/wrangler/wrangler-dist/cli.js:174177:29)
at async createWorkerPreview
(/Users/.../src/just-worker/node_modules/wrangler/wrangler-dist/cli.js:174198:17)
at async start
(/Users/.../src/just-worker/node_modules/wrangler/wrangler-dist/cli.js:174924:34)
{
text: 'A request to the Cloudflare API
(/accounts/.../workers/scripts/just-worker/edge-preview)
failed.',
notes: [
{
text: 'binding HYPERDRIVE of type hyperdrive failed to generate:
internal error; please try again later or contact support [code: 10021]'
}
],
location: undefined,
kind: 'error',
code: 10021,
accountTag: '...'
}
Total Upload: 938.60 KiB / gzip: 185.17 KiB
✘ [ERROR] Error on remote worker: APIError: A request to the Cloudflare API (/accounts/.../workers/scripts/just-worker/edge-preview) failed.

at throwFetchError
(/Users/.../src/just-worker/node_modules/wrangler/wrangler-dist/cli.js:159817:18)
at fetchResult
(/Users/.../src/just-worker/node_modules/wrangler/wrangler-dist/cli.js:159730:5)
at process.processTicksAndRejections
(node:internal/process/task_queues:105:5)
at async createPreviewToken
(/Users/.../src/just-worker/node_modules/wrangler/wrangler-dist/cli.js:174177:29)
at async createWorkerPreview
(/Users/.../src/just-worker/node_modules/wrangler/wrangler-dist/cli.js:174198:17)
at async start
(/Users/.../src/just-worker/node_modules/wrangler/wrangler-dist/cli.js:174924:34)
{
text: 'A request to the Cloudflare API
(/accounts/.../workers/scripts/just-worker/edge-preview)
failed.',
notes: [
{
text: 'binding HYPERDRIVE of type hyperdrive failed to generate:
internal error; please try again later or contact support [code: 10021]'
}
],
location: undefined,
kind: 'error',
code: 10021,
accountTag: '...'
}
I'm not seeing this issue when I run the same command, and we're using the same .dev.vars setup
1 Reply
kchro3
kchro3OP2mo ago
Resolved, it started working without intervention
Want results from more Discord servers?
Add your server