kchro3
kchro3
CDCloudflare Developers
Created by kchro3 on 9/30/2024 in #workers-help
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
2 replies
CDCloudflare Developers
Created by kchro3 on 9/24/2024 in #workers-help
No such module "node:events"
I started seeing this error today:
✘ [ERROR] Error on remote worker: APIError: A request to the Cloudflare API (/accounts/.../workers/scripts/just-worker/edge-preview) failed.

at throwFetchError
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:155221:18)
at fetchResult
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:155134:5)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async createPreviewToken
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:204470:29)
at async createWorkerPreview
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:204491:17)
at async start
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:205214:34) {
text: 'A request to the Cloudflare API
(/accounts/.../workers/scripts/just-worker/edge-preview) failed.',
notes: [
{
text: 'Uncaught Error: No such module "node:events".\n' +
' imported from "index.js"\n' +
' [code: 10021]'
}
],
location: undefined,
kind: 'error',
code: 10021
}
✘ [ERROR] Error on remote worker: APIError: A request to the Cloudflare API (/accounts/.../workers/scripts/just-worker/edge-preview) failed.

at throwFetchError
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:155221:18)
at fetchResult
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:155134:5)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async createPreviewToken
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:204470:29)
at async createWorkerPreview
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:204491:17)
at async start
(/Users/.../workspace/just-worker/node_modules/wrangler/wrangler-dist/cli.js:205214:34) {
text: 'A request to the Cloudflare API
(/accounts/.../workers/scripts/just-worker/edge-preview) failed.',
notes: [
{
text: 'Uncaught Error: No such module "node:events".\n' +
' imported from "index.js"\n' +
' [code: 10021]'
}
],
location: undefined,
kind: 'error',
code: 10021
}
I didn't make any changes that I think would cause this. I tried upgrading my wrangler to the latest version & i already have the node compatibility flag set.
6 replies
CDCloudflare Developers
Created by kchro3 on 7/22/2024 in #workers-help
UnknownError started appearing. Looks like an internal error
No description
1 replies
CDCloudflare Developers
Created by kchro3 on 7/1/2024 in #workers-help
dev branches blocking prod deployments
something that seems like a bug to me is that it looks like the deployments to dev & prod are in the same queue, so you can't deploy to dev & prod at the same time. this seems like a bug because if i have a team of people making changes simultaneously, there are potentially many ongoing dev deployments, and it doesn't make sense for those to be in the same queue as a prod deployment.
6 replies