Provide Errors Details in ImageFetcher |
|||||
Issue description
The ImageDataFetcher currently promises two things for the callback that is invoked when image data fetches were no successful:
A. "In case of an error an empty string is passed to the callback."
B. "If an error prevented a http response,
|request_metadata.response_code| will be RESPONSE_CODE_INVALID."
That means, users of ImageFetcher (which uses the ImageDataFetcher)
will receive empty images in any error case and the error reason is
lost.
We should provide users of this class with the possibility to react to
or record the different reasons why the returned image was empty.
e.g.
500 error --> retry later
404 error --> don't retry, look for alternative
Download limit exceeded --> request smaller images
,
Mar 28 2017
,
Mar 28 2017
Other image_fetcher bugs either don't have a component, or are tagged as NTP too (bug 624761, bug 609127 ), so this is fine for now. We should maybe look into getting an image_fetcher component though.
,
Mar 28 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 3 2018
Still a good first bug. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by fhorschig@chromium.org
, Mar 28 2017