Flutter_cached_network_image: CacheManager: Connection closed before full header was received

Created on 17 Aug 2020  路  11Comments  路  Source: Baseflow/flutter_cached_network_image

馃悰 Bug Report


CacheManager: Failed to download file from https://harbor.alpha.stylewe.com/image_cache/resize/335x445/image/catalog/2015-04-01/new pic/15-4-1-15-3.JPG with error:
Connection closed before full header was received

Expected behavior

Reproduction steps

Configuration

Version: 1.x

Platform:

  • [ ] :iphone: iOS
  • [ ] :robot: Android

Most helpful comment

Apparently it is not really related to doing to many requests, as it is reproduced with doing just 1 request as well. I'll reopen this issue, but you'll should keep track (and thumbs up) this issue: https://github.com/flutter/flutter/issues/41573

All 11 comments

but brower can open it , pic url

any solutions for this issue ?

this is really issue.
when I get over 30 images, some images are stuck and not represent.
Is this issue is flutter's http issue or cache library's issue?

same issue here, the fix to change request from https to HTTP is not helping

Same here, pls fix it :)

I think it might be a problem that the server closes the connections when to many images are downloaded at the same time. So I guess it could be solved with queuing as proposed in #453

@renefloor This issue is still occurring on Flutter 1.22.1, with CachedNetworkImage 2.3.3

Which version of flutter_cache_manager is in your pubspec.lock?

  flutter_cache_manager:
    dependency: transitive
    description:
      name: flutter_cache_manager
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.0.0"

Are you requesting a lot of images? I guess there can be more reasons why a connection is dropped. Can you give me a small reproducible example?

Apparently it is not really related to doing to many requests, as it is reproduced with doing just 1 request as well. I'll reopen this issue, but you'll should keep track (and thumbs up) this issue: https://github.com/flutter/flutter/issues/41573

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sososdk picture sososdk  路  5Comments

BerndWessels picture BerndWessels  路  6Comments

Gavin-1991 picture Gavin-1991  路  6Comments

nashfive picture nashfive  路  5Comments

love-bkpp picture love-bkpp  路  5Comments