{"action":"opened","issue":{"url":"https://api.github.com/repos/whatwg/fetch/issues/113","labels_url":"https://api.github.com/repos/whatwg/fetch/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/fetch/issues/113/comments","events_url":"https://api.github.com/repos/whatwg/fetch/issues/113/events","html_url":"https://github.com/whatwg/fetch/issues/113","id":102758600,"number":113,"title":"204 and json","user":{"login":"wheresrhys","id":447559,"avatar_url":"https://avatars.githubusercontent.com/u/447559?v=3","gravatar_id":"","url":"https://api.github.com/users/wheresrhys","html_url":"https://github.com/wheresrhys","followers_url":"https://api.github.com/users/wheresrhys/followers","following_url":"https://api.github.com/users/wheresrhys/following{/other_user}","gists_url":"https://api.github.com/users/wheresrhys/gists{/gist_id}","starred_url":"https://api.github.com/users/wheresrhys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheresrhys/subscriptions","organizations_url":"https://api.github.com/users/wheresrhys/orgs","repos_url":"https://api.github.com/users/wheresrhys/repos","events_url":"https://api.github.com/users/wheresrhys/events{/privacy}","received_events_url":"https://api.github.com/users/wheresrhys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-24T10:18:30Z","updated_at":"2015-08-24T10:18:30Z","closed_at":null,"body":"When a Response is `204` and `response.json()` is called an `unexpected end of input` error is thrown. \r\nAs the response is already stating that there is no JSON trying to parse it feels wrong. Would it make more sense in this case to either:\r\na) resolve with an empty value \r\nb) throw a more informative error e.g. `Cannot parse a response with no content as json`"}}