{"action":"closed","issue":{"url":"https://api.github.com/repos/RobyRemzy/cozy-map/issues/9","labels_url":"https://api.github.com/repos/RobyRemzy/cozy-map/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/RobyRemzy/cozy-map/issues/9/comments","events_url":"https://api.github.com/repos/RobyRemzy/cozy-map/issues/9/events","html_url":"https://github.com/RobyRemzy/cozy-map/issues/9","id":96357821,"number":9,"title":"TypeError: res.body is null","user":{"login":"RobyRemzy","id":9057506,"avatar_url":"https://avatars.githubusercontent.com/u/9057506?v=3","gravatar_id":"","url":"https://api.github.com/users/RobyRemzy","html_url":"https://github.com/RobyRemzy","followers_url":"https://api.github.com/users/RobyRemzy/followers","following_url":"https://api.github.com/users/RobyRemzy/following{/other_user}","gists_url":"https://api.github.com/users/RobyRemzy/gists{/gist_id}","starred_url":"https://api.github.com/users/RobyRemzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobyRemzy/subscriptions","organizations_url":"https://api.github.com/users/RobyRemzy/orgs","repos_url":"https://api.github.com/users/RobyRemzy/repos","events_url":"https://api.github.com/users/RobyRemzy/events{/privacy}","received_events_url":"https://api.github.com/users/RobyRemzy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RobyRemzy/cozy-map/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/RobyRemzy/cozy-map/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":{"login":"RobyRemzy","id":9057506,"avatar_url":"https://avatars.githubusercontent.com/u/9057506?v=3","gravatar_id":"","url":"https://api.github.com/users/RobyRemzy","html_url":"https://github.com/RobyRemzy","followers_url":"https://api.github.com/users/RobyRemzy/followers","following_url":"https://api.github.com/users/RobyRemzy/following{/other_user}","gists_url":"https://api.github.com/users/RobyRemzy/gists{/gist_id}","starred_url":"https://api.github.com/users/RobyRemzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobyRemzy/subscriptions","organizations_url":"https://api.github.com/users/RobyRemzy/orgs","repos_url":"https://api.github.com/users/RobyRemzy/repos","events_url":"https://api.github.com/users/RobyRemzy/events{/privacy}","received_events_url":"https://api.github.com/users/RobyRemzy/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-07-21T16:16:45Z","updated_at":"2015-07-31T14:35:44Z","closed_at":"2015-07-31T14:35:44Z","body":"with the commit [12e1081168](https://github.com/RobyRemzy/cozy-map/commit/12e10811689674d486bdc59b6ca7c12328bdd58b)  \r\n \r\nIf you start the app it will do a POST and a GET job.\r\n```js\r\nuserConfig.postConfig data, (err, config) ->\r\n\r\nuserConfig.getConfig (err, res) ->\r\n```\r\n\r\ni tried to stop the POST job when the GET job return a body.length not `null`\r\n\r\n```js\r\nuserConfig.getConfig (err, res) ->\r\n\r\n    if res.body[0] is 0\r\n        userConfig.postConfig data, (err, config) ->\r\n```\r\n\r\nunfortunately it firebug me that `res` in `if res.body[0] is 0` is not defined.\r\n\r\nActually this code work if you have already done a POST job.\r\nBut, if you start the app for the first time it will be stuck with a callback err `TypeError: res.body is null`."}}