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

Error: Invalid image data, but Image.network() works fine. #946

Open
javaone199 opened this issue May 8, 2024 · 3 comments
Open

Error: Invalid image data, but Image.network() works fine. #946

javaone199 opened this issue May 8, 2024 · 3 comments

Comments

@javaone199
Copy link

🐛 Bug Report

CachedNetworkImage(
  imageUrl: url,
  placeholder: (context, url) => const CircularProgressIndicator(),
  errorWidget: (context, url, error) => Text(error.toString()),
  httpHeaders: {},
);

tried image URL: https://www.apple.com/v/iphone/home/bu/images/overview/select/iphone_15_pro__bpnjhcrxofqu_large_2x.png

Error: Invalid image data.

The following works fine with the same URL.

Image.network(
  url,
  headers: {},
);

Android 14 real device.

@IceTears1
Copy link

我也遇到了同样的问题

@IceTears1
Copy link

ios也不行 改成http可以正常加载

@Meshkat-Shadik
Copy link

having the same issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants