rails / rails

Ruby on Rails
https://rubyonrails.org
MIT License
55.92k stars 21.64k forks source link

ActionCable connects in incognito window only after refresh #26493

Closed pmichna closed 7 years ago

pmichna commented 8 years ago

I know the problem is very hard to diagnose only from the reproduction steps but maybe it'll ring a bell for someone.

Steps to reproduce

  1. Open the application in production (localhost works fine) in a new incognito window (tested on Chrome and Firefox).
  2. Do something that triggers ActionCable message (or even broadcast them from production's rails console).

    Expected behavior

An ActionCable message should be received in JS.

Actual behavior

The ActionCable message is not received in JS. However, when you REFRESH the page (clicking links on the page doesn't help) and repeat the steps everything works fine. What's more - if you visit the application's page again (not in incognito mode) the problem is not present too.

System configuration

The production application is behind incapsula. Could that be a problem? Rails version: 5.0.0.1 Ruby version: 2.3.1

maclover7 commented 8 years ago

cc @javan

javan commented 8 years ago

I'm unable to reproduce this. I created a fresh app using 5.0.0.1 and Action Cable works the same for me in an incognito window. Can you create an example app that demonstrates the problem you're seeing?

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not been commented on for at least three months. The resources of the Rails team are limited, and so we are asking for your help. If you can still reproduce this error on the 5-1-stable branch or on master, please reply with all of the information you have about it in order to keep the issue open. Thank you for all your contributions.