问题
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