flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[firebase_storage] GTMSessionFetcher invoking fetch callbacks logs

Open loic-hamdi opened this issue 2 years ago • 7 comments

In firebase_storage: ^10.2.12 anytime I launch on iPhone 13 physical device:

imgUrl = await FirebaseStorage.instance.refFromURL('gs://my-great-app-1.appspot.com/$urlToMyImage').getDownloadURL();

I receive the log error:

GTMSessionFetcher invoking fetch callbacks, data {length = 579, bytes = 0x7b0a2020 226e616d 65223a20 22706174 ... 31356666 63220a7d }, error (null)

loic-hamdi avatar May 03 '22 00:05 loic-hamdi

@zzterrozz Can you provide the entire error log ? Does it show something like error Error Domain=NSURLErrorDomain Code ?

The code being returned will be helpful to debug further.

darshankawar avatar May 03 '22 11:05 darshankawar

@darshankawar Unfortunately nothing really to share..

Here is the logs when I load 20 images at the same time with

imgUrl = await FirebaseStorage.instance.refFromURL('gs://my-great-app-1.appspot.com/$urlToMyImage').getDownloadURL();
FadeInImage.memoryNetwork(
image: imgUrl,
height: 200,
width: 200,
imageErrorBuilder: (context, error, stackTrace) => Image.asset('assets/images/error.jpg', fit: BoxFit.fitWidth),
),
firestore

loic-hamdi avatar May 03 '22 13:05 loic-hamdi

@zzterrozz I tried the official plugin example which uses getDownloadUrl() method as below:

body: _uploadTasks.isEmpty
          ? const Center(child: Text("Press the '+' button to add a new file."))
          : ListView.builder(
        itemCount: _uploadTasks.length,
        itemBuilder: (context, index) => UploadTaskListTile(
          task: _uploadTasks[index],
          onDismissed: () => _removeTaskAtIndex(index),
          onDownloadLink: () async {
            return _downloadLink(_uploadTasks[index].snapshot.ref);
          },
          onDownload: () async {
            if (kIsWeb) {
              return _downloadBytes(_uploadTasks[index].snapshot.ref);
            } else {
              return _downloadFile(_uploadTasks[index].snapshot.ref);
            }
          },
        ),
      ),

Ran it on iPhone 6s device but didn't get the said error log.

Here is the logs when I load 20 images at the same time with

Does it only occur while executing this case ?

Also, can you try the same plugin example on same device and see if you still get the log ?

darshankawar avatar May 04 '22 10:05 darshankawar

Hi @darshankawar

I was not able to reproduce your example because I don't use firebase emulator.

I can confirm that I have the same behavior on physical device iPhone 11 Pro Max - iOS 15.4.1, however on emulator iPhone 13 - iOS 15.4 it does not show the log error message.

loic-hamdi avatar May 04 '22 17:05 loic-hamdi

I am unable to replicate this issue on the device I tried, but looking at the report and error log as, it doesn't show a complete error, keeping it open for further insights from the team.

GTMSessionFetcher invoking fetch callbacks, data {length = 579, bytes = 0x7b0a2020 226e616d 65223a20 22706174 ... 31356666 63220a7d }, error (null)

darshankawar avatar May 05 '22 11:05 darshankawar

@zzterrozz does this occur only when you upload many images? or can you reproduce with just 1?

russellwheatley avatar Jul 21 '22 15:07 russellwheatley

@zzterrozz does this occur only when you upload many images? or can you reproduce with just 1?

hi @russellwheatley , it happens for any quantity.

loic-hamdi avatar Jul 29 '22 16:07 loic-hamdi

@loic-hamdi Do you still reproduce this error with the latest version of Firebase Storage?

Lyokone avatar Jan 02 '23 14:01 Lyokone

Hey @loic-hamdi. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Jan 11 '23 02:01 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@loic-hamdi if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Jan 19 '23 02:01 google-oss-bot