{"action":"created","issue":{"url":"https://api.github.com/repos/web-push-libs/web-push/issues/215","repository_url":"https://api.github.com/repos/web-push-libs/web-push","labels_url":"https://api.github.com/repos/web-push-libs/web-push/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/web-push-libs/web-push/issues/215/comments","events_url":"https://api.github.com/repos/web-push-libs/web-push/issues/215/events","html_url":"https://github.com/web-push-libs/web-push/issues/215","id":177018256,"number":215,"title":"webPush.sendNotification returns getaddrinfo ENOTFOUND","user":{"login":"grrrian","id":7276514,"avatar_url":"https://avatars.githubusercontent.com/u/7276514?v=3","gravatar_id":"","url":"https://api.github.com/users/grrrian","html_url":"https://github.com/grrrian","followers_url":"https://api.github.com/users/grrrian/followers","following_url":"https://api.github.com/users/grrrian/following{/other_user}","gists_url":"https://api.github.com/users/grrrian/gists{/gist_id}","starred_url":"https://api.github.com/users/grrrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grrrian/subscriptions","organizations_url":"https://api.github.com/users/grrrian/orgs","repos_url":"https://api.github.com/users/grrrian/repos","events_url":"https://api.github.com/users/grrrian/events{/privacy}","received_events_url":"https://api.github.com/users/grrrian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-14T20:54:49Z","updated_at":"2016-09-15T04:43:52Z","closed_at":null,"body":"When I call:\r\n```\r\n     webPush.setGCMAPIKey(FIREBASE_GCM_SERVER_KEY);\r\n      return webPush.sendNotification(_.get(req, 'body.pushEndpoint.to'), {\r\n        payload: JSON.stringify(_.get(req, 'body.payload')),\r\n        userPublicKey: _.get(req, 'body.userPublicKey'),\r\n        userAuth: _.get(req, 'body.userAuth')\r\n      })\r\n      .then(function() {\r\n        console.log('DONE');\r\n        res.send(200);\r\n        return next();\r\n      }, function(error) {\r\n        console.log('error: ', error);\r\n      }));\r\n```\r\nI'm getting the following error: \r\n```\r\n{ [Error: getaddrinfo ENOTFOUND apa91... apa91...:443]\r\n  code: 'ENOTFOUND',\r\n  errno: 'ENOTFOUND',\r\n  syscall: 'getaddrinfo',\r\n  hostname: 'apa91...',\r\n  host: 'apa91...',\r\n  port: 443 }\r\n```\r\n\r\n`getaddrinfo ENOTFOUND` means the client was not able to connect to given address. Does anyone know why? Is it because I am on localhost?"},"comment":{"url":"https://api.github.com/repos/web-push-libs/web-push/issues/comments/247233471","html_url":"https://github.com/web-push-libs/web-push/issues/215#issuecomment-247233471","issue_url":"https://api.github.com/repos/web-push-libs/web-push/issues/215","id":247233471,"user":{"login":"kitcambridge","id":243830,"avatar_url":"https://avatars.githubusercontent.com/u/243830?v=3","gravatar_id":"","url":"https://api.github.com/users/kitcambridge","html_url":"https://github.com/kitcambridge","followers_url":"https://api.github.com/users/kitcambridge/followers","following_url":"https://api.github.com/users/kitcambridge/following{/other_user}","gists_url":"https://api.github.com/users/kitcambridge/gists{/gist_id}","starred_url":"https://api.github.com/users/kitcambridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitcambridge/subscriptions","organizations_url":"https://api.github.com/users/kitcambridge/orgs","repos_url":"https://api.github.com/users/kitcambridge/repos","events_url":"https://api.github.com/users/kitcambridge/events{/privacy}","received_events_url":"https://api.github.com/users/kitcambridge/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T04:43:52Z","updated_at":"2016-09-15T04:43:52Z","body":"That `apa91...` hostname seems rather curious. What does `_.get(req, 'body.pushEndpoint.to')` return when you get that error?"}}
{"actor":{"display_login":"kitcambridge"}}