question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wrangler halts after a few refreshes in dev

See original GitHub issue

Describe the problem:

After about half a dozen changes to the application, wrangler crashes.

Steps to reproduce:

  • Start app, browse to http://localhost:8080/
  • make a change to trigger “Detected changes…”
  • refresh browser
  • Repeat aprox half a dozen times

Error log 1632613019631.log has been attached.

[worker] 🌀  Detected changes...
[worker] [2021-09-25 16:36:56] GET cmc-web.essential.workers.dev/ HTTP/1.1 200 OK
[worker] [2021-09-25 16:36:57] GET cmc-web.essential.workers.dev/favicon-32x32.png HTTP/1.1 200 OK
[worker] [2021-09-25 16:36:58] GET cmc-web.essential.workers.dev/favicon-32x32.png HTTP/1.1 200 OK
[worker] 
[worker] Oops! Wrangler encountered an error:
[worker] 
[worker] panicked at '--watch change message failed to send: SendError { .. }', src/wranglerjs/mod.rs:112:41
[worker] 
[worker] Please help Cloudflare debug this issue by submitting the error report
[worker] (/home/joel/.wrangler/errors/1632613019631.log)
[worker] 
[worker] To submit this error report to Cloudflare, run:
[worker] 
[worker]     $ wrangler report
[worker]         
[client] [HPM] Error occurred while trying to proxy request / from localhost:8080 to http://localhost:8787 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

I keep having to restart the app every few refreshes.

I have tried wrangler versions 1.19.0, 1.19.1, 1.19.3.

I’m not sure where to even start solving this. I need some help. Cheers!

Link to a minimal reproduction:

https://github.com/joelnet/flareact-error

npm ci
npm run dev

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tj-kevcommented, Oct 22, 2021

@joelnet Thanks for checking.

Will close the issue for now. Can reopen if its still a problem in the future.

0reactions
joelnetcommented, Oct 21, 2021

Quick update on this. It does seem to be more stable on the latest releases of wrangler.

Updated wrangler to 1.19.4 and it appears to be better.

I am seeing this message in the logs

[worker] 💁  Starting a new session because the existing token has expired

So I am assuming that wrangler is handling the expired token more gracefully.

Read more comments on GitHub >

github_iconTop Results From Across the Web

wrangler dev often panics when it detects new files but keeps ...
It looks to me like the 'watcher' thread has problems and stops seeing changes. ... The only remedy is to kill wrangler dev...
Read more >
Fuel and Oil Refresh mode in Progress Engine Running
For all the jeep 4xe fan, I was stuck in FORM always on for 2 month. Was able to clear it by driving...
Read more >
2021 WRANGLER - Dealer E Process
The vehicle will automatically enter into the Fuel and Oil Refresh Mode to minimize potential for stale fuel, and to ensure lubrication of...
Read more >
Export - Amazon SageMaker - AWS Documentation
Data Wrangler gives you the ability to export your data to a location within an Amazon S3 bucket. You can specify the location...
Read more >
Electric Mode Temporarily Unavailable/Fuel & Oil Refresh Mode
Learn what to do if see a message in the instrument cluster display stating that electric mode is temporarily unavailable or if the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found