All threads / GroupChat ActionCable Part 6 coffee and Chrome compatibility

Ask A Question

Notifications

You’re not receiving notifications from this thread.

GroupChat ActionCable Part 6 coffee and Chrome compatibility

Rob Sturcke asked in General

Running into a strange error, everything works perfectly fine in Safari/Firefox. However, when launching in Chrome functionality completely halts after adding notifications.coffee. Is there something I'm missing or is this a security bug on chrome's part?

Only clue on Chrome's console: page is not secure under Security tab, and won't process console.log any longer

Edit: rails s still receives information, but message_relay seems to be delayed with Chrome and no significant changes are made. Safari still receives the notifications of messages sent from the Chrome browser.

Just looking to see if a similar issue has ever been experienced, I can compromise for using a different browser and finishing the process no problem, but will definitely revisit the project to see if the same error occurs.

Not sure what to make of it, triple checked spelling etc, very strange!
https://github.com/robSturcke/halibut/blob/master/app/assets/javascripts/notifications.coffee

Haven't seen this myself. What logs are in your Javascript console?

So I figured out what happened, but still a very strange occurrence that has happened to me once before.

After restarting redis server, rails s, cache clearing on Chrome I decided to just delete the chatroom, as well as create a new user entirely. It worked! So my conclusion is that for some reason Chrome may hold onto certain Coffeescript (or JS) being used on localhost:3000 and I had a similar occurrence of this happen once before about year ago in a AngularJS project.

Very strange but got it working! This project has been a lot of fun, can't thank you enough for making these tutorials!

Interesting. I've seen some odd things with caching in the browser sometimes and that could definitely do it. Plus they update Chrome so often these days that you never know when they might introduce a small bug or something.

Very glad you're enjoying the series. I had a lot of fun making it! 😎

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 35,699+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.