Closed
Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Storage
Which platforms are affected?
iOS
Description
[storage]: Unknown Error (Message too long) while uploading image on iOS
Description
While uploading images to firebase storage from flutter ios project the images are sometimes uploaded to the storage however sometimes the images are not uploaded and we are stuck with a message that says; "Unhandled Exception: [firebase_storage/unknown] The operation couldn’t be completed. Message too long"
Flutter doctor Output
Flutter doctor -v output
Reproducing the issue
Unable to identify the exact steps to reproduce the issue,
final refRaw = FirebaseStorage.instance.ref();
final ref = refRaw.child(name);
final uploadTask = await ref.putFile(file); // Line that produces the error
final downloadUrl = await uploadTask.ref.getDownloadURL();
return downloadUrl;
Line no. 3 sometimes fail with the error code: [firebase_storage/unknown]
and error message: The operation couldn’t be completed. Message too long
Firebase Core version
2.15.0
Flutter Version
3.19.6
Relevant Log Output
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: [firebase_storage/unknown] The operation couldn’t be completed. Message too long