Skip to content
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

Can't find files when bucket is provided #24

Open
maxfornacon opened this issue Feb 19, 2022 · 2 comments
Open

Can't find files when bucket is provided #24

maxfornacon opened this issue Feb 19, 2022 · 2 comments

Comments

@maxfornacon
Copy link

maxfornacon commented Feb 19, 2022

When I try to instantiate the storage with a custom bucket a object not found error occurs when trying to upload or receive metadata, etc.

  var storage = FirebaseStorage.instanceFor(
          app: cloudStorageApp,
          bucket: 'gs://...'
        );

Error message:

flutter: [storage/object-not-found] Object 'path/to/object' does not exist.

I double checked that there is a file in the expected location in firebase console.
When I use the default bucket it works perfectly fine.

@usernamekk
Copy link

Having the same issue. Has anybody solved the issues? Please I need help. Thanks

@rbellens
Copy link
Collaborator

When I try, it works. However, it fails when the bucket url is not formatted correctly. It should either be 'bucket-name' or 'gs://bucket-name/'. So, with a trailing slash and without a path. I will change this in the next version to also accept urls without the trailing slash.

Can you confirm that it works with a correctly formatted bucket string?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants