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

useStorageDownloadURL crashes when there is no file in firebase storage #535

Open
kirilligum opened this issue Aug 3, 2022 · 4 comments
Assignees

Comments

@kirilligum
Copy link

Version info

React:
17.0.2
Firebase:
9.6.6
ReactFire:
4.2.1
Other (e.g. Node, browser, operating system) (if applicable):
nodejs v16.16.0

Test case

Steps to reproduce

in the code

  const storage = useStorage();
  const catRef = ref(storage, 'kyc/upload/wy_id');
  const { status, data: imageURL } = useStorageDownloadURL(catRef);

Expected behavior

if the file is not there, the status should reflect

Actual behavior

the website is blank and in the browser's console:
Uncaught FirebaseError: Firebase Storage: Object 'kyc/upload/wy_id' does not exist. (storage/object-not-found)

@jhuleatt jhuleatt self-assigned this Aug 4, 2022
@steveoh
Copy link

steveoh commented Dec 7, 2022

I'm seeing same issue.

@adamkubina1
Copy link

Same issue for me...
Has anybody found a working solution for this by any chance?

@steveoh
Copy link

steveoh commented Apr 4, 2023

I stopped using reactfire for this and used the base firebase constructs and it fixed a few issues in our app.

@prixrak
Copy link

prixrak commented Jun 4, 2023

the same..

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

5 participants