flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

non-fatal exceptions from Firebase storage links

Open deepak786 opened this issue 3 years ago • 3 comments

We are using CachedNetworkImage to load the images from Firebase storage. Crashlytics shows a lot of exceptions from the Firebase Storage links.

I already reported this issue to Flutter https://github.com/flutter/flutter/issues/102494 but it seems that it has to be investigated here as per the comment https://github.com/flutter/flutter/issues/102494#issuecomment-1110595819

I don't have the reproducible steps.

cached_network_image: 3.2.0

Platform:

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

deepak786 avatar Apr 27 '22 10:04 deepak786

Any update?

YonatanSegura97 avatar Sep 20 '24 17:09 YonatanSegura97

Have you set images as public ? Maybe the url expire and so cached Network have invalid reference.

EArminjon avatar Sep 20 '24 17:09 EArminjon

Have you set images as public ? Maybe the url expire and so cached Network have invalid reference.

HI @EArminjon I am experiencing the same issue but here is an example url that @deepak786 gave in the other issue: https://firebasestorage.googleapis.com/v0/b/agenda-boa-test.appspot.com/o/content%20feed%20test.jpg?alt=media&token=999a7d13-dfcd-477b-b44e-e307cfc4bdcb

I am not sure if its an issue with the package or if we can catch it and show an appropriate message to the user? I think it's happening because of unstable internet and then some of these errors are thrown.

Bellow are some examples of the errors that I get:

HttpException: Connection closed while receiving data, uri = "my url here". Error thrown image failed to precache.
HttpException: Connection closed before full header was received, uri = "my url here". Error thrown image failed to precache.
Connection closed while receiving data. Error thrown resolving an image codec.
FirebaseCrashlytics.recordError (firebase_crashlytics.dart:119)

ImageStreamCompleter.reportError (image_stream.dart:734)
new MultiImageStreamCompleter.<fn> (multi_image_stream_completer.dart:32)
_SuspendState._createAsyncStarCallback.<fn> (dart:async)
new MultiImageStreamCompleter.<fn> (multi_image_stream_completer.dart:25)

Christiaan-Mathu avatar Oct 23 '24 05:10 Christiaan-Mathu