{"action":"opened","issue":{"url":"https://api.github.com/repos/t3chnoboy/amazon-product-api/issues/12","labels_url":"https://api.github.com/repos/t3chnoboy/amazon-product-api/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/t3chnoboy/amazon-product-api/issues/12/comments","events_url":"https://api.github.com/repos/t3chnoboy/amazon-product-api/issues/12/events","html_url":"https://github.com/t3chnoboy/amazon-product-api/issues/12","id":82895896,"number":12,"title":"response underfined","user":{"login":"henrikekblad","id":5717075,"avatar_url":"https://avatars.githubusercontent.com/u/5717075?v=3","gravatar_id":"","url":"https://api.github.com/users/henrikekblad","html_url":"https://github.com/henrikekblad","followers_url":"https://api.github.com/users/henrikekblad/followers","following_url":"https://api.github.com/users/henrikekblad/following{/other_user}","gists_url":"https://api.github.com/users/henrikekblad/gists{/gist_id}","starred_url":"https://api.github.com/users/henrikekblad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrikekblad/subscriptions","organizations_url":"https://api.github.com/users/henrikekblad/orgs","repos_url":"https://api.github.com/users/henrikekblad/repos","events_url":"https://api.github.com/users/henrikekblad/events{/privacy}","received_events_url":"https://api.github.com/users/henrikekblad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-30T19:46:19Z","updated_at":"2015-05-30T19:46:19Z","closed_at":null,"body":"Would be good to add a ```!respose``` check on the following line. \r\nhttps://github.com/t3chnoboy/amazon-product-api/blob/master/lib/index.js#L19\r\n\r\nIf internet connection is down this causes an exception:\r\n\r\n```\r\nTypeError: Cannot read property 'statusCode' of undefined\r\n    at Request._callback (/Users/hek/git/nodebb-plugin-affiliate/node_modules/amazon-product-api/lib/index.js:19:21)\r\n    at self.callback (/Users/hek/git/nodebb-plugin-affiliate/node_modules/request/request.js:368:22)\r\n    at Request.emit (events.js:107:17)\r\n    at Request.onRequestError (/Users/hek/git/nodebb-plugin-affiliate/node_modules/request/request.js:1025:8)\r\n    at ClientRequest.emit (events.js:107:17)\r\n    at Socket.socketErrorListener (_http_client.js:271:9)\r\n    at Socket.emit (events.js:107:17)\r\n    at net.js:940:16\r\n    at process._tickDomainCallback (node.js:381:11)\r\n```"}}