Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

Viewed 12055

i have created a chat app using pusher in laravel but this types errors occurs in console when run application

  1. WebSocket connection to 'wss://ws-your-pusher-app-cluster.pusher.com/app/your-pusher-key?protocol=7&client=js&version=4.1.0&flash=false' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED

  2. OPTIONS https://sockjs-your-pusher-app-cluster.pusher.com/pusher/app/your-pusher-key/150/ccc8teqg/xhr_streaming?protocol=7&client=js&version=4.1.0&t=1510723218799&n=1 net::ERR_NAME_NOT_RESOLVED

1 Answers

ERR_NAME_NOT_RESOLVED means the hostname cannot be resolved to an IP address by the DNS. If you look at the hostname ws-your-pusher-app-cluster.pusher.com, you can see that you should change the subdomain ws-your-pusher-app-cluster to whatever cluster your pusher app is located on. You can find the cluster in the Pusher dashboard.

Related