Comments (3)
@palkan Thank you so much for your help. The cause of the problem was the nginx location /cable ...
being on the wrong place of the config file. It is working great now 👍
from anycable-rails.
Hey @garlou!
config.action_cable.url = "wss://my_staging_url.com/cable"
Are you sure the url is correct? You should point it to anycable-go
server, which us running on port :3333
:
INFO 2019-04-10T10:31:54.843Z context=http Starting HTTP server at localhost:3335
The exception indicates that your client is trying to connect to a built-in Action Cable server; this line:
in new'#12/opt/mdrevccm3_staging/shared/bundle/ruby/2.6.0/gems/actioncable-5.1.7/lib/action_cable/server/base.rb:28:in
Also, do you have an explicit mount ActionCabe.server => "/cable"
in your routes.rb
?
from anycable-rails.
Hi @palkan. Thanks for the quick reply.
Yes, the url is correct and I changed the port of anycable-go by specifying --host=localhost --port=3335
when starting the anycable-go server.
I also have this configs on my nginx proxy which works well for other environments:
...
upstream puma_staging_ws {
server localhost:3335;
}
...
location /cable {
proxy_pass http://puma_staging_ws;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
}
...
The exception indicates that your client is trying to connect to a built-in Action Cable server; this line:
Is there a way to confirm this? I don't have mount ActionCabe.server => "/cable"
anywhere on the code.
Thanks once again
from anycable-rails.
Related Issues (20)
- can't run bundle exec anycable HOT 9
- AnyCable Deployment Guide HOT 4
- Nearly Complete Deployment w/Anycable HOT 3
- Does anycable truly depend on latest & greatest Ruby/Rails? HOT 2
- Rails 7 compatibility issue HOT 41
- log4r broken in development HOT 6
- Flutter app is connecting fine to wss, but actual subscribe is throwing unknown command type errors HOT 2
- Cannot call handle_open to handle JWT expiration HOT 2
- Permissions Error when Deploying AnyCable to Heroku HOT 11
- RPC memory usage - pods OOMkilled with 4GB allocated per pod HOT 4
- Anycable-rails and Seachkick together hangs the server HOT 2
- Tenant getting lost during identifier serialization HOT 3
- ActionController::RoutingError (No route matches [GET] "/cable")
- Devise authentication/sessions not working HOT 1
- What's the best way to close open connections on forking? HOT 5
- Issue with anycable-rpc crashing on start `terminate called after throwing an instance of 'std::logic_error'` HOT 2
- ActiveSupport::Logger.broadcast method is dropped HOT 8
- Issues with gRPC Communication between AnyCable Go and AnyCable Rails HOT 2
- ActionController::RoutingError (No route matches [GET] "/cable"): HOT 7
- reconnect option not forwarded in ActionCable::RemoteConnections::RemoteConnection#disconnect HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anycable-rails.