-
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
[🐛] After new Firebase Update starting October 2024 Storage no longer points to right bucket by default #8123
Comments
Hi there! Could you open a fresh issue but this time include the information requested in the template so we know what versions are in use here? A sample code we could install as an onClick handler for repro would be appreciated We don't appear to be doing anything directly in code with bucket names, the bucket default is taken from the plist/json configuration files downloaded from firebase web console - https://github.com/search?q=repo%3Ainvertase%2Freact-native-firebase+appspot.com&type=code (all the hits there are related to manual init testing, secondary bucket testing init manually, and bucket name comparison in testing - none of it appears to be "while interacting with SDKs, do something with the bucket name...") |
possibly of interest - our e2e tests are running against the local firestore emulator but I believe it's possible to alter them to run against the cloud APIs, that might be a way to reproduce this in our e2e tests if there is a problem in the module here |
Can confirm that changing the url to firebasestorage.app in your GoogleService-Info.plist and google-services.json will fix the issue. |
I've put the right link of the bucket and dowloaded newest google-service file from console but this error ( |
Problem solved, I upgraded version of all firebase in my project (to 21.5.0) |
According to this link there are now new firebase storage bucket URLs and some changes are happening to the legacy ones. Firebase Announcement
When i tried to upload a file using the Storage package i ran into a problem where the file wouldn't upload even if there were no storage rules on the bucket.
[Error: [storage/object-not-found] No object exists at the desired reference.]
Looking into it more i logged the
storage().ref('filepath...')
and the link of the bucket wasgs://project-name.appspot.com
but in firebase my buckets URL isgs://project-name.firebasestorage.app
.I'm not sure what change needs to be done on the Storage package side but i believe this will start happening more for newly created storage buckets.
Workaround for me was to use
storage().refFromURL(`gs://project-name.firebasestorage.app/${folder}/${filename})
The text was updated successfully, but these errors were encountered: