{"action":"created","issue":{"url":"https://api.github.com/repos/ahuglajbclajep/Ajax-QRcode/issues/6","repository_url":"https://api.github.com/repos/ahuglajbclajep/Ajax-QRcode","labels_url":"https://api.github.com/repos/ahuglajbclajep/Ajax-QRcode/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ahuglajbclajep/Ajax-QRcode/issues/6/comments","events_url":"https://api.github.com/repos/ahuglajbclajep/Ajax-QRcode/issues/6/events","html_url":"https://github.com/ahuglajbclajep/Ajax-QRcode/issues/6","id":228001316,"number":6,"title":"fetchAPIではエラー処理ができない？","user":{"login":"ahuglajbclajep","id":25224365,"avatar_url":"https://avatars3.githubusercontent.com/u/25224365?v=3","gravatar_id":"","url":"https://api.github.com/users/ahuglajbclajep","html_url":"https://github.com/ahuglajbclajep","followers_url":"https://api.github.com/users/ahuglajbclajep/followers","following_url":"https://api.github.com/users/ahuglajbclajep/following{/other_user}","gists_url":"https://api.github.com/users/ahuglajbclajep/gists{/gist_id}","starred_url":"https://api.github.com/users/ahuglajbclajep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahuglajbclajep/subscriptions","organizations_url":"https://api.github.com/users/ahuglajbclajep/orgs","repos_url":"https://api.github.com/users/ahuglajbclajep/repos","events_url":"https://api.github.com/users/ahuglajbclajep/events{/privacy}","received_events_url":"https://api.github.com/users/ahuglajbclajep/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-05-11T13:59:17Z","updated_at":"2017-05-11T14:41:28Z","closed_at":"2017-05-11T14:15:40Z","body":"[FetchAPIの概説](https://developer.mozilla.org/ja/docs/Web/API/Fetch_API/Using_Fetch)には\r\n```js\r\nfetch('flowers.jpg').then(function(response) {\r\n  if(response.ok) {\r\n    response.blob().then(function(myBlob) {\r\n      var objectURL = URL.createObjectURL(myBlob);\r\n      myImage.src = objectURL;\r\n    });\r\n  } else {\r\n    console.log('Network response was not ok.');\r\n  }\r\n})\r\n.catch(function(error) {\r\n  console.log('There has been a problem with your fetch operation: ' + error.message);\r\n});\r\n```\r\nとあるがうまくcatchできなかった"},"comment":{"url":"https://api.github.com/repos/ahuglajbclajep/Ajax-QRcode/issues/comments/300810646","html_url":"https://github.com/ahuglajbclajep/Ajax-QRcode/issues/6#issuecomment-300810646","issue_url":"https://api.github.com/repos/ahuglajbclajep/Ajax-QRcode/issues/6","id":300810646,"user":{"login":"ahuglajbclajep","id":25224365,"avatar_url":"https://avatars3.githubusercontent.com/u/25224365?v=3","gravatar_id":"","url":"https://api.github.com/users/ahuglajbclajep","html_url":"https://github.com/ahuglajbclajep","followers_url":"https://api.github.com/users/ahuglajbclajep/followers","following_url":"https://api.github.com/users/ahuglajbclajep/following{/other_user}","gists_url":"https://api.github.com/users/ahuglajbclajep/gists{/gist_id}","starred_url":"https://api.github.com/users/ahuglajbclajep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahuglajbclajep/subscriptions","organizations_url":"https://api.github.com/users/ahuglajbclajep/orgs","repos_url":"https://api.github.com/users/ahuglajbclajep/repos","events_url":"https://api.github.com/users/ahuglajbclajep/events{/privacy}","received_events_url":"https://api.github.com/users/ahuglajbclajep/received_events","type":"User","site_admin":false},"created_at":"2017-05-11T14:41:28Z","updated_at":"2017-05-11T14:41:28Z","body":"ちなみに`if(response.ok)`を挟まなくて404がきても表示上は変わらない\r\nハンドルしてるエラーは若干多くなってたけど"}}
{"actor":{"display_login":"ahuglajbclajep"}}