{"action":"closed","issue":{"url":"https://api.github.com/repos/sphereio/sphere-node-product-csv-sync/issues/204","repository_url":"https://api.github.com/repos/sphereio/sphere-node-product-csv-sync","labels_url":"https://api.github.com/repos/sphereio/sphere-node-product-csv-sync/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/sphereio/sphere-node-product-csv-sync/issues/204/comments","events_url":"https://api.github.com/repos/sphereio/sphere-node-product-csv-sync/issues/204/events","html_url":"https://github.com/sphereio/sphere-node-product-csv-sync/issues/204","id":322248177,"number":204,"title":"Check for existence of body element in error response","user":{"login":"junajan","id":1090382,"avatar_url":"https://avatars0.githubusercontent.com/u/1090382?v=4","gravatar_id":"","url":"https://api.github.com/users/junajan","html_url":"https://github.com/junajan","followers_url":"https://api.github.com/users/junajan/followers","following_url":"https://api.github.com/users/junajan/following{/other_user}","gists_url":"https://api.github.com/users/junajan/gists{/gist_id}","starred_url":"https://api.github.com/users/junajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junajan/subscriptions","organizations_url":"https://api.github.com/users/junajan/orgs","repos_url":"https://api.github.com/users/junajan/repos","events_url":"https://api.github.com/users/junajan/events{/privacy}","received_events_url":"https://api.github.com/users/junajan/received_events","type":"User","site_admin":false},"labels":[{"id":450522865,"url":"https://api.github.com/repos/sphereio/sphere-node-product-csv-sync/labels/Status:%20In%20Progress","name":"Status: In Progress","color":"cccccc","default":false},{"id":450522861,"url":"https://api.github.com/repos/sphereio/sphere-node-product-csv-sync/labels/Type:%20Bug","name":"Type: Bug","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":{"login":"junajan","id":1090382,"avatar_url":"https://avatars0.githubusercontent.com/u/1090382?v=4","gravatar_id":"","url":"https://api.github.com/users/junajan","html_url":"https://github.com/junajan","followers_url":"https://api.github.com/users/junajan/followers","following_url":"https://api.github.com/users/junajan/following{/other_user}","gists_url":"https://api.github.com/users/junajan/gists{/gist_id}","starred_url":"https://api.github.com/users/junajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junajan/subscriptions","organizations_url":"https://api.github.com/users/junajan/orgs","repos_url":"https://api.github.com/users/junajan/repos","events_url":"https://api.github.com/users/junajan/events{/privacy}","received_events_url":"https://api.github.com/users/junajan/received_events","type":"User","site_admin":false},"assignees":[{"login":"junajan","id":1090382,"avatar_url":"https://avatars0.githubusercontent.com/u/1090382?v=4","gravatar_id":"","url":"https://api.github.com/users/junajan","html_url":"https://github.com/junajan","followers_url":"https://api.github.com/users/junajan/followers","following_url":"https://api.github.com/users/junajan/following{/other_user}","gists_url":"https://api.github.com/users/junajan/gists{/gist_id}","starred_url":"https://api.github.com/users/junajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junajan/subscriptions","organizations_url":"https://api.github.com/users/junajan/orgs","repos_url":"https://api.github.com/users/junajan/repos","events_url":"https://api.github.com/users/junajan/events{/privacy}","received_events_url":"https://api.github.com/users/junajan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-05-11T10:29:35Z","updated_at":"2018-05-11T10:49:43Z","closed_at":"2018-05-11T10:49:43Z","author_association":"COLLABORATOR","body":"Here in this [code](https://github.com/sphereio/sphere-node-product-csv-sync/blob/dd1c91cad6f53d9a47568052b73bbed12f0fc365/src/coffee/import.coffee#L212) we should check if body exists before we try to read statusCode. Some errors - eg. connection issues may return an error without body element."}}
{"actor":{"display_login":"junajan"}}