workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: wrangler dev shows "Script not found"

Open bjesus opened this issue 3 years ago • 7 comments

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.

screenshot_2022-08-22_11-45-24_494046891

bjesus avatar Aug 22 '22 09:08 bjesus

Contacting @alankemp and will ping internally.

JacobMGEvans avatar Aug 22 '22 15:08 JacobMGEvans

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 avatar Aug 30 '22 13:08 rozenmd

@rozenmd per your last comment, did you make a PR for this?

lrapoport-cf avatar Sep 08 '22 03:09 lrapoport-cf

Good call out @lrapoport-cf - I've updated my comment.

rozenmd avatar Sep 08 '22 07:09 rozenmd

@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...

bjesus avatar Sep 08 '22 07:09 bjesus

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

threepointone avatar Sep 08 '22 07:09 threepointone

we've created an internal ticket to investigate the issue with the preview session service

lrapoport-cf avatar Sep 12 '22 20:09 lrapoport-cf

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

penalosa avatar Jun 15 '23 17:06 penalosa