-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🐛 [firebase_storage] [firebase_storage/unknown] An unknown error occurred, please check the server response.. Error thrown null. #7706
Comments
Actually there is no server response and that's the problem, it's a custom Crashlytics trace that i have made myself (using the I have seen these comments, so do you suggest i try on Android and see if i get a useful error ? In any case, there is no way to get a useful error on iOS ? This is very hard to debug especially since the error doesn't occur all the time (a permission-denied would always return an error) |
Well on Android i have this error :
Also not useful... |
The Android log is same as mentioned in the original issue and comment. I'll keep it open and label for further investigation. /cc @russellwheatley @helenaford. This was originally reported #3791 but still seems to be happening. |
Yes it's the same first part but there is no clause I have no clue what this is about in both Android and iOS... Thanks for investigating. |
All of my beta testers that have experienced an error during upload show this log in my I had a related issue server-side on another project without firebase, when uploading |
I have reached out Firebase support regarding this because i had logs from iOS especially. They were able to reproduce my issue with a sample code. Unfortunately this didn't fix the problem...
The code sample is :
|
I'm facing the same issue while trying to interact with Firebase Storage Emulator. The picture is uploaded but it fails with this same error. |
The same with me on iOS device. For Android and Web works fine. |
I have reduced a lot this error by using It seems that there is an issue with how Firebase iOS SDK tries to validate Flutter files |
Nice, I tried a couple times use putData and the error did not appear so far (For now). |
|
Since the emulator error and Firebase iOS SDK error have been solved, I'll close this. |
Bug report
Describe the bug
I have an app in beta test and my users complained about a file upload that sometimes fails.
I have logged my upload methods to
firebase_storage
and i saw sometimes this error :I have also noticed this kind of error but i have no clue where this comes from :
Is it linked ? I don't know, as i don't know
when
this error is raised (ie: before upload, after upload, before download...).Steps to reproduce
It works fine 90% of the time i would say but all of my users are experiencing it.
If this is a "normal" error, how can I debug this please to know the underlying cause ?
Expected behavior
The error should not be unknown so we (developer) can know the real problem and fix it.
The fact that we should
check the server response
, you will agree with me, is unfortunately useless for a solution such asfirebase_storage
that is serverless for developers.But i would actually like to see this
server response
or anything that has a real explanation.Additional context
For the upload logic, i am simply uploading local files (a
thumbnail
of a file saved in a new file and the main file).Before upload i am compressing files and check if the
File
s exist locally and do not start byhttp
.Then, i use the
getDownloadUrl()
method to get the URL and save it in my database.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: