Description
Description
I am using an iPhone 16 Pro Simulator running iOS 18.2, and when I try to upload a picture in Firebase Storage, I am getting this error:
[firebase_storage/unknown] The operation couldn’t be completed. Message too long
I get this while running the Firebase SDK for Flutter, and I originally opened an issue there about it.
As you can see in the thread, our suspicion is that some iPhone devices/OS has a smaller datagram size and if you try to create a bigger data gram, you get this error. The iOS Vertex AI library appears to have this issue as well (as you can also see at the issue I linked), but they have another method there that seems to go around this limitation, whereas Firebase Storage doesn't have one, so the Flutter SDK can't use any workarounds and the iOS native library should be the one fixed.
Reproducing the issue
Follow the steps in the issue linked above.
Firebase SDK Version
11.6.0
Xcode Version
16.2
Installation Method
CocoaPods
Firebase Product(s)
Storage
Targeted Platforms
iOS
Relevant Log Output
[firebase_storage/unknown] The operation couldn’t be completed. Message too long
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved
snippet
Replace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock
snippet
Replace this line with the contents of your Podfile.lock!