workers-sdk
workers-sdk copied to clipboard
🐛 BUG: wrangler dev shows "Script not found"
What version of Wrangler are you using?
2.0.26
What operating system are you using?
Linux, Mac
Describe the Bug
We are a Cloudflare team working on Zaraz, recently switched to using wrangler dev for local development purposes. Quite often when launching wrangler dev, we get a 1104 Script not found error. This happens to all of our team members, usually at the same time, and it just gets resolved by itself, without any changes to our Worker code.

Contacting @alankemp and will ping internally.
After chatting about this with @petebacondarwin and @bjesus, we think the issue might be a worker name collision, will make a PR with a fix
Edit: The issue was not worker name collision
@rozenmd per your last comment, did you make a PR for this?
Good call out @lrapoport-cf - I've updated my comment.
@rozenmd - are we sure it wasn't? the issue is completely solved for us since we wrapped wrangler dev with a shell script that generates random worker names...
It still implies a bug with the preview session service, not wrangler. We should fix this at the source, and not need workarounds like you describe
we've created an internal ticket to investigate the issue with the preview session service
Closing in favour of the internal ticket EW-6904. Of note, Wrangler 3 uses local mode for dev by default, which shouldn't exhibit the same issue