-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
🔥[v6.0.x] Upload of live photos fails with "NativeFirebaseError: [storage/unknown] An unknown error has occurred" #2762
Comments
Hello 👋, to help manage issues we automatically close stale issues.
|
I didn't have the chance to try the latest release but looking at the commit history for the past month there doesn't seem to be a fix for this issue yet. I'll confirm that later this week. |
Not much storage-related change here no, but you never know with the underlying SDK releases, iOS13 forced a lot of change in underlying pods, you might try a full update there (to 6.13.0 as of this typing) to see if it still reproduces |
@maximevaly were you able to fix this? I am running into issue right now RN 0.61.4 |
@alittletf No sorry, for now my only solution was to stick to 0.59. |
@mikehardy I tried updated to @react-native-firebase/app & /storage to 6.2.0 and im currently on RN 0.61.4 and can confirm you are not able to upload live photos. Any ideas for a workaround? EDIT: For anyone coming across this I managed to figure out a workaround for now. When a user selects a photo, I first figure out if the photo is a live photo. I look to see if it has a .mov extension in the filename property. If it does I then use the react-native-view-shot lib to take a screen grab of the photo and use that URI (which is a jpg) and then send on to firebase. Its very hacky, and I will remove it when fixed here but the solution does work in my use case. ^ @maximevaly this what I ended up doing for now |
Hi there! Sorry, I'm not doing this personally so I don't have any experience - all the useful knowledge in this thread has come from you guys, and there hasn't even been the normal lower-level (versions, configuration etc) issues that I typically help fuzzbust through to get the real issues. If anyone can find where in the code the issue is, this seems like the crew that would provide a sketch for a "real solution" and a PR to do it - those sorts of things are integrated quickly at least, in my experience |
Hello 👋, to help manage issues we automatically close stale issues.
|
As far as I know this has not been fixed. |
Hello 👋, to help manage issues we automatically close stale issues.
|
Hello 👋, to help manage issues we automatically close stale issues.
|
Hi @maximevaly. I've successfully uploaded an image from my device using version |
Hi @russellwheatley, thanks for looking into this. I confirm that I’m using a jpeg, the issue is when that jpeg is a live photo. Here’s an example of a file for which the upload doesn’t work https://gofile.io/?c=a73M7a, and a few more test files https://gofile.io/?c=Yal15S (normal photos work fine)
I tested all versions from Let me know if you need more information. |
Hi @maximevaley do you mind creating a reproducible repo for me as I'm failing to reproduce? Thank you. |
Hello 👋, to help manage issues we automatically close stale issues.
|
Hello 👋, to help manage issues we automatically close stale issues.
|
I am also running into this problem, also only when trying to upload live photos. I'm using a uri that looks like this: |
I'm back with a reproducible bug repo! To reiterate, the issue occurs only with live photos on the iphone. I used a real device, both iphone 5s (ios 12) and iphone 8 (ios 13). |
I am also having this issue on iOS Simulator only.
But it works fine on iPhone/Android phones itself. Code
Package.json
System Info
UPDATE: |
ok, sounds like it's resolved. |
Firewalls are not the problem for me and I'm also guessing not a problem for the other people that in this thread, so sorry for opening this back up. Is there any updates on the reproduced bug that I linked in a previous comment? Thanks |
@mikehardy Can you open this back up please? The issue, separate from what AbhiShrek had, was not resolved. Thanks. |
@vjann can you open a new issue please? This was opened in 2019 and does not contain your project information for troubleshooting |
I am using: "react-native": "0.63.4", I tried to upload files: Using iOS simulator, uploading images ends in unknown-error. I did not try real devices nor Android yet. |
@majirosstefan can you open a new issue please? This was opened in 2019 and does not contain your project information for troubleshooting |
Is it resolved? |
@rmindo please read my last comment? We need a reproduction on a new issue with current versions before any progress will be made |
@mikehardy will open a new one. Thanks |
Issue
Hi, I have an issue when uploading live photos from an iOS 13 device with the following libraries:
Regular pictures work fine, and before upgrading from 0.59 to 0.60 live photos were ok as well. Here's a example of the code we use:
The upload fails with the following stacktrace:
Not sure if it's relevant but I had to downgrade the version of Protobuf to
3.9.2
because compilation was failing with3.10.0
.Project Files
iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:Android
I haven't tried on Android yet
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:6.0.1
&6.0.2
Firebase
module(s) you're using that has the issue:@react-native-firebase/storage
TypeScript
?Y
&3.5.3
The text was updated successfully, but these errors were encountered: