{"action":"created","issue":{"url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/428","repository_url":"https://api.github.com/repos/SocketCluster/socketcluster","labels_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/428/comments","events_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/428/events","html_url":"https://github.com/SocketCluster/socketcluster/issues/428","id":333906836,"node_id":"MDU6SXNzdWUzMzM5MDY4MzY=","number":428,"title":"Socket hung up","user":{"login":"leyue","id":11764671,"node_id":"MDQ6VXNlcjExNzY0Njcx","avatar_url":"https://avatars0.githubusercontent.com/u/11764671?v=4","gravatar_id":"","url":"https://api.github.com/users/leyue","html_url":"https://github.com/leyue","followers_url":"https://api.github.com/users/leyue/followers","following_url":"https://api.github.com/users/leyue/following{/other_user}","gists_url":"https://api.github.com/users/leyue/gists{/gist_id}","starred_url":"https://api.github.com/users/leyue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leyue/subscriptions","organizations_url":"https://api.github.com/users/leyue/orgs","repos_url":"https://api.github.com/users/leyue/repos","events_url":"https://api.github.com/users/leyue/events{/privacy}","received_events_url":"https://api.github.com/users/leyue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-20T02:57:02Z","updated_at":"2018-07-25T22:46:55Z","closed_at":null,"author_association":"NONE","body":"###env:\r\n1: ingress\r\nrules:\r\n    - host: sprd.nats.service\r\n      http:\r\n        paths:\r\n        - path: /nats/scc-demo\r\n          backend:\r\n            serviceName: socketcluster\r\n            servicePort: 8000\r\n2: socketCluster.connect({host: 'sprd.nats.service:30001/nats/scc-demo', })\r\n\r\n###bug:\r\nMost of the time can be connected successfully\r\nbut  some times: (from chrome devtool)\r\n\r\n> WebSocket connection to 'ws://sprd.nats.service:30001/nats/scc-demo/socketcluster/' failed: WebSocket is closed before the connection is established.\r\n\r\n> Uncaught SocketProtocolError {name: \"SocketProtocolError\", message: \"Client connection establishment timed out\", code: 4007, stack: \"SocketProtocolError: Client connection establishme…_communication_01/public/socketcluster.js:1457:18\"}\r\n\r\n> WebSocket connection to 'ws://sprd.nats.service:30001/nats/scc-demo/socketcluster/' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED\r\n\r\n> Uncaught SocketProtocolError {name: \"SocketProtocolError\", message: \"Socket hung up\", code: 1006, stack: \"SocketProtocolError: Socket hung up↵    at SCClien…communication_01/public/socketcluster.js:1452:20)\"}\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/comments/407920434","html_url":"https://github.com/SocketCluster/socketcluster/issues/428#issuecomment-407920434","issue_url":"https://api.github.com/repos/SocketCluster/socketcluster/issues/428","id":407920434,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzkyMDQzNA==","user":{"login":"jondubois","id":1187447,"node_id":"MDQ6VXNlcjExODc0NDc=","avatar_url":"https://avatars1.githubusercontent.com/u/1187447?v=4","gravatar_id":"","url":"https://api.github.com/users/jondubois","html_url":"https://github.com/jondubois","followers_url":"https://api.github.com/users/jondubois/followers","following_url":"https://api.github.com/users/jondubois/following{/other_user}","gists_url":"https://api.github.com/users/jondubois/gists{/gist_id}","starred_url":"https://api.github.com/users/jondubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jondubois/subscriptions","organizations_url":"https://api.github.com/users/jondubois/orgs","repos_url":"https://api.github.com/users/jondubois/repos","events_url":"https://api.github.com/users/jondubois/events{/privacy}","received_events_url":"https://api.github.com/users/jondubois/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T22:46:55Z","updated_at":"2018-07-25T22:46:55Z","author_association":"MEMBER","body":"These errors seem to indicate that the server could not be reached or it took too long to establish the connection. Maybe there is a load balancer/proxy which is blocking or throttling the connection. You can also get this error if a socket disconnects abruptly without sending a WebSocket close control frame.\r\n\r\nIt's normal to get these 'Socket hung up' messages sometimes in production."}}
{"actor":{"display_login":"jondubois"}}