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.

Problems with reloading

See original GitHub issue

My logs show when ERB files change, no reload occurs. This is so strange! Also, my browser shows lots of problems with wss:// connections. I am really trying hard to figure out where the true issue lies! So far, no clues…

Rebuilding...
Done in 18ms.
[ActionCable] Broadcasting to hotwire-reload: {:changed=>["/Users/beers/Documents/Workspace/Apps/planty/app/views/kilts/index.html.erb"], :force_reload=>false}
[watch] build started (change: "app/javascript/application.js")
[watch] build finished
Rebuilding...
Done in 19ms.
[ActionCable] Broadcasting to hotwire-reload: {:changed=>["/Users/beers/Documents/Workspace/Apps/planty/app/javascript/application.js"], :force_reload=>true}

Example of browser messages.


    Firefox can’t establish a connection to the server at wss://myshite.test/cable. hotwire-livereload-69f109e9f29dd4f334a14c739a16f66d96595dcede55037f287ea8712288c0ae.js:226:31
    The connection to wss://myshite.test/cable was interrupted while the page was loading. hotwire-livereload-69f109e9f29dd4f334a14c739a16f66d96595dcede55037f287ea8712288c0ae.js:226:31
    Firefox can’t establish a connection to the server at wss://myshite.test/cable. hotwire-livereload-69f109e9f29dd4f334a14c739a16f66d96595dcede55037f287ea8712288c0ae.js:226:31
    The connection to wss://myshite.test/cable was interrupted while the page was loading. hotwire-livereload-69f109e9f29dd4f334a14c739a16f66d96595dcede55037f287ea8712288c0ae.js:226:31
    Firefox can’t establish a connection to the server at wss://myshite.test/cable. hotwire-livereload-69f109e9f29dd4f334a14c739a16f66d96595dcede55037f287ea8712288c0ae.js:226:31
    The connection to wss://myshite.test/cable was interrupted while the page was loading. hotwire-livereload-69f109e9f29dd4f334a14c739a16f66d96595dcede55037f287ea8712288c0ae.js:226:31

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
lcuevastodoitcommented, May 23, 2022

Excelent @kirillplatonov you are the master, the problem was puma 5.6.0 Solved with puma 5.6.4

bundle update puma
Installing puma 5.6.4 (was 5.6.0) with native extensions
Removing puma (5.6.0)
Bundle updated!
~/test-hotwire-live-reloading$ bundle info puma
  * puma (5.6.4)
  
1reaction
kirillplatonovcommented, May 23, 2022

@lcuevastodoit it seems like there was a bug in older puma that caused issues with Action Cable broadcasting. Upgrading puma to the latest version helps to resolve this: bundle update puma

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Most Common Reloading Mistakes - Shooting Times
Inadequate Crimping · Cracked Cases · Cases Dented by Sizing Lube · Excessive Powder Charge · Inadequate Primer Seating · Overzealous Primer Seating...
Read more >
3 Common Reloading Mistakes And How To Avoid Them
1. Too Much Lubrication · 2. Gunpowder, Gunpowder, Gunpowder · 3. Cartridge Cases That Are Too Long · 5 Pains All Concealed Carriers...
Read more >
Smart Reloading Tips — How to Avoid Common Problems
This story, which originally appeared in the Sierra Blog, covers some of the more common ammo problems that afflict hand-loaders. Some of those ......
Read more >
10 Common Reloading Mistakes that Can Easily be Avoided
1. Cracks on cartridges · 2. Dents on the cases · 3. Using the wrong amount of powder charge · 4. Unreliable primers...
Read more >
11 Most Common Reloading Mistakes You Should Simply Avoid
A primer that is placed too deep may cause trouble to weapon cycling and even crack under the pressure. While primers that are...
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