Rails 5.2 app, with angular as Front end not able

2019-08-17 06:59发布

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)

0条回答
登录 后发表回答