Immutable solution version
🐛 BUG: Unable to run wrangler dev since version 3.19.0
Complete solution
[petebacondarwin (contributor)]: Underscores in worker names break TLS hostname verification (test_worker.subdomain.workers.dev fails the check), which breaks wrangler dev --remote and Miniflare fetches. Rename the worker to remove the underscore: do it in the Cloudflare dashboard (Workers -> Manage -> Rename Worker), not by renaming in wrangler.toml, which would orphan the old worker.
The problem
Since version 3.19.0 of wrangler was released we're no longer able to run wrangler dev --remote. It runs, but as soon as a page is viewed the following error is thrown:
The fix
[petebacondarwin (contributor)]: Underscores in worker names break TLS hostname verification (test_worker.subdomain.workers.dev fails the check), which breaks wrangler dev --remote and Miniflare fetches. Rename the worker to remove the underscore: do it in the Cloudflare dashboard (Workers -> Manage -> Rename Worker), not by renaming in wrangler.toml, which would orphan the old worker. zehawki confirmed the dashboard rename fixed it with no data loss.
Evidence
In gh:cloudflare/workers-sdk#4921 (https://github.com/cloudflare/workers-sdk/issues/4921), the reporter ran into this: Since version 3.19.0 of wrangler was released we're no longer able to run wrangler dev --remote. It runs, but as soon as a page is viewed the following error is thrown: The verified resolution: [petebacondarwin (contributor)]: Underscores in worker names break TLS hostname verification (test_worker.subdomain.workers.dev fails the check), which breaks wrangler dev --remote and Miniflare fetches. Rename the worker to remove the underscore: do it in the Cloudflare dashboard (Workers -> Manage -> Rename Worker), not by renaming in wrangler.toml, which would orphan the old worker. zehawki confirmed the dashboard rename fixed it with no data loss.
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_dM4OTCt9_RTwQ7vbG0Jofg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">🐛 BUG: Unable to run wrangler dev since version 3.19.0 <span>— Vectle</span></a>