{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/21330","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/21330/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/21330/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/21330/events","html_url":"https://github.com/flutter/flutter/issues/21330","id":356247917,"node_id":"MDU6SXNzdWUzNTYyNDc5MTc=","number":21330,"title":"Image.network wrapped with try / catch doesn't get caught","user":{"login":"abacaj","id":7272343,"node_id":"MDQ6VXNlcjcyNzIzNDM=","avatar_url":"https://avatars2.githubusercontent.com/u/7272343?v=4","gravatar_id":"","url":"https://api.github.com/users/abacaj","html_url":"https://github.com/abacaj","followers_url":"https://api.github.com/users/abacaj/followers","following_url":"https://api.github.com/users/abacaj/following{/other_user}","gists_url":"https://api.github.com/users/abacaj/gists{/gist_id}","starred_url":"https://api.github.com/users/abacaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abacaj/subscriptions","organizations_url":"https://api.github.com/users/abacaj/orgs","repos_url":"https://api.github.com/users/abacaj/repos","events_url":"https://api.github.com/users/abacaj/events{/privacy}","received_events_url":"https://api.github.com/users/abacaj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-02T02:44:37Z","updated_at":"2018-09-02T15:11:57Z","closed_at":"2018-09-02T15:11:57Z","author_association":"NONE","body":"Not really sure If I am doing something wrong but this seems really odd, if I get a bad image to `Image.network`, by bad I mean 404 not found error, it will throw the exception and I can't seem to catch it.\r\n\r\nThe error is:\r\n```\r\nException has occurred.\r\nException: HTTP request failed, statusCode: 404, https://s3.reutersmedia.net/resources_v2/images/apple-touch-icon.png\r\n```\r\n\r\nMy catch statement is never hit, any ideas?\r\n\r\n```\r\n      try {\r\n        var img = Image.network(\"https://s3.reutersmedia.net/resources_v2/images/apple-touch-icon.png\");\r\n        return img;\r\n      } catch (e) {\r\n        log.severe(e);\r\n      }\r\n```"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/417937530","html_url":"https://github.com/flutter/flutter/issues/21330#issuecomment-417937530","issue_url":"https://api.github.com/repos/flutter/flutter/issues/21330","id":417937530,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzkzNzUzMA==","user":{"login":"abacaj","id":7272343,"node_id":"MDQ6VXNlcjcyNzIzNDM=","avatar_url":"https://avatars2.githubusercontent.com/u/7272343?v=4","gravatar_id":"","url":"https://api.github.com/users/abacaj","html_url":"https://github.com/abacaj","followers_url":"https://api.github.com/users/abacaj/followers","following_url":"https://api.github.com/users/abacaj/following{/other_user}","gists_url":"https://api.github.com/users/abacaj/gists{/gist_id}","starred_url":"https://api.github.com/users/abacaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abacaj/subscriptions","organizations_url":"https://api.github.com/users/abacaj/orgs","repos_url":"https://api.github.com/users/abacaj/repos","events_url":"https://api.github.com/users/abacaj/events{/privacy}","received_events_url":"https://api.github.com/users/abacaj/received_events","type":"User","site_admin":false},"created_at":"2018-09-02T15:11:57Z","updated_at":"2018-09-02T15:11:57Z","author_association":"NONE","body":"Yeah that would explain it. Thank you.\r\n\r\nGonna close because as a workaround it's possible to use my own 'NetworkImage' class which will catch the exception."}}
{"actor":{"display_login":"abacaj"}}