Rails 5.2 app, with angular as Front end not able to run on local to make a call for action cable

泄露秘密 提交于 2019-12-25 03:34:15

问题


I am running a rails 5 app(action cable), angular is also used in Front-end. Getting below error when angularJS tries to send request to rails server via /cable

Started GET "/cable" for 127.0.0.1 at 2019-01-09 18:37:05 +0530

Started GET "/cable/" [WebSocket] for 127.0.0.1 at 2019-01-09 18:37:05 +0530

Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)

Exiting /home/testt/.rvm/gems/ruby-2.4.4@testt/gems/redis-3.3.5/lib/redis/connection/ruby.rb:229:in `getaddrinfo': getaddrinfo: Name or service not known (SocketError)

来源:https://stackoverflow.com/questions/54111066/rails-5-2-app-with-angular-as-front-end-not-able-to-run-on-local-to-make-a-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!