-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web sockets on 0.8 release #48
Comments
@glennfu Lot's of questions:
|
Also In the FireBug console I see this:
|
Check if |
Here is the sample app that I used to test websockets: https://github.com/puma/actioncable-examples |
I don't believe I've been using spring, but just in case, I ran |
I was having issues with the new release as well but I had to do a puma-dev --uninstall then brew uninstall, after that I reinstalled it thru brew and it started working. A simple brew upgrade did not take effect the new changes, even after a system restart as well. |
OK I did the following:
No perceived difference. Then I restarted my laptop and tried again. Now I'm actually getting a difference. Unfortunately it's still not working. Now the Firebug log looks like:
and in Rails log:
These both spam together in unison frequently. Under puma-dev 0.7, I'd only get 1 Rails log request, and tons of Firebug spam about "interrupted". Here's the puma-dev.log:
|
Just for some extra context, skipping puma-dev I can do Then in the Rails log I see:
|
Just to be sure, can you update Also, you don't list doing What version of rails? I think I need to try and replicate the issue locally which I'm not able to do right now. Would you be wiling to try the actioncable-examples repo I linked before and see if it works for you? |
Oh sorry, yeah, here's what I actually did:
I'll take a look at actioncable-examples later and see if I can reproduce my situation. |
OK, I checked out actioncable-examples. It runs ActionCable on a separate server instance, which is not the default setup, and not the situation that I've described here. To get it looking right, I changed
and
With this change,
Next, to test puma-dev:
Then I setup puma-dev to load the app at Visiting http://actioncable-examples.dev I see the same errors as described above:
Then in the server log:
EDIT: I also noticed the puma version was "2.15.3". I ran |
The puma fork is what you want to test. It changes the config to run all in
|
Can you clarify what that means? If I google Puma and "fork" or "puma fork" I can't find any clarity on how to use this or what that means. |
I mean https://github.com/puma/actioncable-examples. It has commits to work inside puma-dev as a test. I'm in the midst of writing a new actioncable test app as well. |
OK I see what you mean. I just switched over to using that repo, and added |
Ok, but why is setting that required? It works correctly without it.
|
If I checkout that project and don't make any changes at all, I get the same error. I can't find any configuration that uses a .dev url to host the app through puma-dev that makes ActionCable connect. |
Hate to resurface this, but I just realized that this issue actually still shows up for me but only on Firefox. It works completely fine on Chrome though. I tested it out with your it with your example project as well. |
I'm getting the exact same error as @glennfu above on latest Firefox. I have a Rails running on a port, if I access it as
|
Is it me or does puma-dev mangle Connection and Upgrade headers? |
This issue is killing me for two days, any ideas? It doesn't work with any browser for me and I also tried everything in this thread by now. Here is a SO questioned I also opened about this: https://stackoverflow.com/questions/44602711/actioncable-never-establishes-connection-to-channel |
I haven' been able to get it to work at all with puma-dev. I kept getting handshake issues and the server wasn't even logging any attempts at a connection 😞 Doing a manual rails server startup and creating a connection to ws://localhost:3000 worked without a hitch. |
I can confirm that I'm unable to get websockets to work properly when accessing an app served by puma-dev with Firefox, but it works with Chrome. When I access the same app with a simple
How can I help troubleshoot this issue? |
Trying to figure out what to change in the codebase is probably a good start! ;) |
@joallard Yes, of course. If I knew golang and this project better, there would probably already be a PR. Thanks for the suggestion though ;) |
Seems like I was able to find the root cause of this issue. Basically Firefox sends |
I've followed the setup as best I can here:
development.rb:
I load the page and see after the page loads...
The text was updated successfully, but these errors were encountered: