{"action":"closed","issue":{"url":"https://api.github.com/repos/siddharthkp/auto-install/issues/17","repository_url":"https://api.github.com/repos/siddharthkp/auto-install","labels_url":"https://api.github.com/repos/siddharthkp/auto-install/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/siddharthkp/auto-install/issues/17/comments","events_url":"https://api.github.com/repos/siddharthkp/auto-install/issues/17/events","html_url":"https://github.com/siddharthkp/auto-install/issues/17","id":171078559,"number":17,"title":"Crashes when there is no internet connection","user":{"login":"siddharthkp","id":1863771,"avatar_url":"https://avatars.githubusercontent.com/u/1863771?v=3","gravatar_id":"","url":"https://api.github.com/users/siddharthkp","html_url":"https://github.com/siddharthkp","followers_url":"https://api.github.com/users/siddharthkp/followers","following_url":"https://api.github.com/users/siddharthkp/following{/other_user}","gists_url":"https://api.github.com/users/siddharthkp/gists{/gist_id}","starred_url":"https://api.github.com/users/siddharthkp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddharthkp/subscriptions","organizations_url":"https://api.github.com/users/siddharthkp/orgs","repos_url":"https://api.github.com/users/siddharthkp/repos","events_url":"https://api.github.com/users/siddharthkp/events{/privacy}","received_events_url":"https://api.github.com/users/siddharthkp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/siddharthkp/auto-install/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":{"login":"siddharthkp","id":1863771,"avatar_url":"https://avatars.githubusercontent.com/u/1863771?v=3","gravatar_id":"","url":"https://api.github.com/users/siddharthkp","html_url":"https://github.com/siddharthkp","followers_url":"https://api.github.com/users/siddharthkp/followers","following_url":"https://api.github.com/users/siddharthkp/following{/other_user}","gists_url":"https://api.github.com/users/siddharthkp/gists{/gist_id}","starred_url":"https://api.github.com/users/siddharthkp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddharthkp/subscriptions","organizations_url":"https://api.github.com/users/siddharthkp/orgs","repos_url":"https://api.github.com/users/siddharthkp/repos","events_url":"https://api.github.com/users/siddharthkp/events{/privacy}","received_events_url":"https://api.github.com/users/siddharthkp/received_events","type":"User","site_admin":false},"assignees":[{"login":"siddharthkp","id":1863771,"avatar_url":"https://avatars.githubusercontent.com/u/1863771?v=3","gravatar_id":"","url":"https://api.github.com/users/siddharthkp","html_url":"https://github.com/siddharthkp","followers_url":"https://api.github.com/users/siddharthkp/followers","following_url":"https://api.github.com/users/siddharthkp/following{/other_user}","gists_url":"https://api.github.com/users/siddharthkp/gists{/gist_id}","starred_url":"https://api.github.com/users/siddharthkp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siddharthkp/subscriptions","organizations_url":"https://api.github.com/users/siddharthkp/orgs","repos_url":"https://api.github.com/users/siddharthkp/repos","events_url":"https://api.github.com/users/siddharthkp/events{/privacy}","received_events_url":"https://api.github.com/users/siddharthkp/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-08-14T21:02:53Z","updated_at":"2016-08-18T12:02:42Z","closed_at":"2016-08-18T12:02:42Z","body":"Originally reported in https://github.com/siddharthkp/auto-install/issues/12\r\n\r\n\r\n\r\n> version 1.2.4 crashes when trying to request something without a network connection - I guess when it tries to verify if it's a trusted package or not.\r\n\r\n```sh\r\n/Users/bananas/.nvm/versions/node/v6.2.2/lib/node_modules/auto-install/node_modules/sync-request/index.js:37\r\n    throw new Error(response.error.message || response.error || response);\r\n    ^\r\n\r\nError: getaddrinfo ENOTFOUND api.npmjs.org api.npmjs.org:443\r\n    at doRequest (/Users/bananas/.nvm/versions/node/v6.2.2/lib/node_modules/auto-install/node_modules/sync-request/index.js:37:11)\r\n    at isModulePopular (/Users/bananas/.nvm/versions/node/v6.2.2/lib/node_modules/auto-install/helpers.js:187:18)\r\n    at Object.installModule (/Users/bananas/.nvm/versions/node/v6.2.2/lib/node_modules/auto-install/helpers.js:47:24)\r\n    at FSWatcher.main (/Users/bananas/.nvm/versions/node/v6.2.2/lib/node_modules/auto-install/index.js:25:66)\r\n    at emitOne (events.js:96:13)\r\n    at FSWatcher.emit (events.js:188:7)\r\n    at FSWatcher.<anonymous> (/Users/bananas/.nvm/versions/node/v6.2.2/lib/node_modules/auto-install/node_modules/chokidar/index.js:191:15)\r\n    at FSWatcher._emit (/Users/bananas/.nvm/versions/node/v6.2.2/lib/node_modules/auto-install/node_modules/chokidar/index.js:233:5)\r\n    at FSWatcher.<anonymous> (/Users/bananas/.nvm/versions/node/v6.2.2/lib/node_modules/auto-install/node_modules/chokidar/lib/fsevents-handler.js:204:14)\r\n    at addOrChange (/Users/bananas/.nvm/versions/node/v6.2.2/lib/node_modules/auto-install/node_modules/chokidar/lib/fsevents-handler.js:210:7)\r\n```\r\n"}}
{"actor":{"display_login":"siddharthkp"}}