Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example Code for Isolates in Flutter Cookbook Fails Due to NetworkImageLoadException. #11311

Open
1 task
Turskyi opened this issue Oct 23, 2024 · 0 comments
Open
1 task
Labels
from.page-issue Reported in a reader-filed concern

Comments

@Turskyi
Copy link

Turskyi commented Oct 23, 2024

Page URL

https://docs.flutter.dev/cookbook/networking/background-parsing/

Page source

https://github.com/flutter/website/tree/main/src/content/cookbook/networking/background-parsing.md

Describe the problem

I followed the example provided in the Flutter Cookbook for using isolates to perform background parsing (https://docs.flutter.dev/cookbook/networking/background-parsing). However, when running the code on an iOS simulator, I encountered multiple NetworkImageLoadException errors. The console logs indicate HTTP 504 errors for the placeholder image URLs, resulting in the UI displaying “http request failed” squares instead of the expected images.
Screenshot 2024-10-23 at 5 22 01 PM

Expected fix

The example should use reliable image URLs or include a fallback mechanism to handle image loading failures gracefully. This would ensure that the example works as intended and matches the preview GIF shown in the documentation.

Additional context

Here are the specific errors from the console:
======== Exception caught by image resource service ================================================ The following NetworkImageLoadException was thrown resolving an image codec: HTTP request failed, statusCode: 504, https://via.placeholder.com/150/56a8c2 ...
This issue affects the usability of the example and may confuse users who are trying to learn from the documentation. Providing a working example is crucial for a professional and educational experience.

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.
@Turskyi Turskyi added the from.page-issue Reported in a reader-filed concern label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from.page-issue Reported in a reader-filed concern
Projects
None yet
Development

No branches or pull requests

1 participant