worker.fetch failing on node18.x + GitHub actions

Hey 👋 This minimal test using unstable_dev and worker.fetch works locally, but fails in GitHub actions https://github.com/kysely-org/kysely/tree/master/test/cloudflare-workers Any ideas?
/home/runner/work/kysely/kysely/test/cloudflare-workers/node_modules/wrangler/wrangler-dist/cli.js:29573
throw a;
^
TypeError: fetch failed
at fetch (/home/runner/work/kysely/kysely/test/cloudflare-workers/node_modules/undici/index.js:112:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MessagePort.<anonymous> ([worker eval]:28:22) {
[cause]: Error: connect ECONNREFUSED ::1:33163
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
}
/home/runner/work/kysely/kysely/test/cloudflare-workers/node_modules/wrangler/wrangler-dist/cli.js:29573
throw a;
^
TypeError: fetch failed
at fetch (/home/runner/work/kysely/kysely/test/cloudflare-workers/node_modules/undici/index.js:112:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MessagePort.<anonymous> ([worker eval]:28:22) {
[cause]: Error: connect ECONNREFUSED ::1:33163
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)
}
https://github.com/kysely-org/kysely/actions/runs/8847499673/job/24295439271 node 18.x [email protected] [email protected] [email protected] it used to work on [email protected] was node18 support dropped?
1 Reply
DaniFoldi
DaniFoldi•8mo ago
Hi :meowwave:, I don't think node support was changed since there was not major version bump recently - unstable_dev is an experimental feature which could be broken in theory, but works fine for me. I recommend opening a GitHub issue https://github.com/cloudflare/workers-sdk/issues/new/choose so the team can take a look, since nothing immediately jumps to my mind that could be causing it. Out of curiosity, can you try 3.18.0 and 3.19.0? That's where there was a big change to the dev server which could be useful for the team to know.
Want results from more Discord servers?
Add your server