-
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
refFromUrl using https://...... is not working #3260
Comments
Well it seems to be from the error that the URL you're passing in doesn't correlate with anything in your storage bucket. Btw, you should include a proper code snippet to make troubleshooting easier. |
@naomipindrus can you give an example URL that you're using? |
@Salakar something like this https://firebasestorage.googleapis.com/v0/........ |
It is not parsing a download URL correctly. The path is: The download URL: And here is what refFromURL() spits out:
It is just finding the first segment of the path. |
This is 100% an issue on Android that I am also experiencing right now. If you need an example URL, It works on iOS, but not on Android. I think it has to do with path parsing as mentioned here. |
SolvedSo, my problem was that I was getting the downloadURL from Instead, if I just use the SDK's internal |
Hello 👋, to help manage issues we automatically close stale issues.
|
Still an issue. |
Hello 👋, to help manage issues we automatically close stale issues.
|
Not fixed. |
Can you try the latest release, I thought this was fixed by #3369 |
This issue still exists with version 7.0.1. The slashes within the path are now handled correctly, but the ref is still not valid. Valid refs have a bucket named "{BUCKET}.appspot.com" but the refs from refFromURL have a bucket named "{BUCKET}". See #2753. |
I solved that : |
@DnzDmR your solution works like a charm. Thanks! However, this is a workaround. This bug needs to be fixed. |
Hello 👋, to help manage issues we automatically close stale issues.
|
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Edit: Turned out to be unrelated to React Native Firebase; just some mystery bug that appeared from seemingly nowhere. |
Issue
Describe your issue here
when holding a download url of an image in firebase storage and trying to get it's reference in firebase using: firebase.storage().refFromURL(downloadUrl)
i get the following error:
Error: [storage/object-not-found] No object exists at the desired reference.
NativeFirebaseError: [storage/object-not-found] No object exists at the desired reference.
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:e.g. 5.4.3
Firebase
module(s) you're using that has the issue:e.g. Instance ID
TypeScript
?Y/N
&VERSION
Think
react-native-firebase
is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: