-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
config.action_cable.url in development is being overwritten somewhere #115
Comments
config.action_cable.url
in development is being overwritten somewhere
Hey! Do you use the Action Cable uses |
|
Thanks! And what do you see in the rendered HTML then? Does it contain the valid link ( |
yes there is a |
The only suggestion is to debug the JS |
Environment
ruby 2.5.0p0
Rails 6.0.0.rc2
AnyCable v0.6.4
anycable-rails (0.6.5)
grpc (1.27.0)
I set up anycable using the official documentation but I kept getting a
ActionController::RoutingError (No route matches [GET] "/cable"):
. The url being knocked on wasws://localhost:3000/cable
while the anycable-go websocket server is running on port 3334.I use webpacker on this app.
This routing error is only fixed when in the
app/javascript/channels/consumer.js
I usethat is, explicitly declare the url while creating the consumer.
It does not matter if I remove the
config.action_cable_url
fromdevelopment.rb
which is very weird. This is clearly a case of overwritten configuration.This error was not resolved by #88 or #41.
Does this look like a webpacker problem ? Please tell me what files will be relevant to debug this.
The text was updated successfully, but these errors were encountered: