-
Notifications
You must be signed in to change notification settings - Fork 4k
🐛 [firebase_storage] An unknown error occurred while calling method Reference#getDownloadURL when using Storage Emulator #9787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @rignaneseleo, is this issue only on iOS, or are you also experiencing this issue on android? If this is also on android, can you share the logs? I tried the Can you share a complete minimal reproducible code sample as well? |
Hi, Maybe it's the same if you use the Firebase emulator |
it can help I think it's known bugs of the last version I should have waited before updating |
It's ONLY on iOS. The issue is the same reported by Javier. |
I can reproduce the issue only when using the storage emulator.
|
/cc @russellwheatley, since this has been reported upstream, should we keep this open to track this here or close it in favor of the upstream issue? |
This has been fixed on the iOS SDK and will be part of the next release I believe: firebase/firebase-ios-sdk#10370 |
I'm now using the updated libraries:
But the problem still occurs (only on iOS):
|
Same here. on my real device, iOS only. I realized that while having customMetadata final metadata = SettableMetadata(
customMetadata: {'owner': uid},
contentType: file.mimeType,
);
uploadTask = ref.putFile(File(file.path), metadata); I get the error.. then after removing it.. final metadata = SettableMetadata(
// customMetadata: {'owner': uid},
contentType: file.mimeType,
);
uploadTask = ref.putFile(File(file.path), metadata); It works. can anyone confirm? |
This is happening to me as well, only on iOS.
It worked when I removed the "customMetadata" key, as pointed out by @jslattery26 (tks for that!). |
The fix has been released in Firebase iOS SDK |
Thanks @russellwheatley |
Is this merged yet? |
I think so! It's in release |
Has this fix been released? |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
After updating the firebase libraries (check below the old and new versions), I get this error on iOS (both physical and simulator):
I have updated my firebase libraries from
to
Steps to reproduce
Steps to reproduce the behavior:
fileRef.putFile()
fileRef.getDownloadURL()
Expected behavior
The URL of the file should be returned like it did using the old firebase libraries.
Sample code
This is the code I'm using:
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: