# Firebase Storage: storage/object-not-found — No object exists at the desired reference

**Code:** `object-not-found` · **Category:** Google Cloud / Firebase · **Seen on:** Firebase, JavaScript

The path you requested doesn't exist in the bucket (or isn't visible to the user).

## Meaning

Check the exact path and case, wait for uploads to finish before reading, confirm the right bucket, and note that rules can make missing/forbidden objects look the same. `getDownloadURL` fails if the upload didn't complete.

## Common causes

- Typo or wrong case in the path
- Upload not finished
- Wrong bucket
- Object deleted
- Reading before write completes

## Quick fix

1. Print the reference `fullPath` and compare with the console
2. Await the upload task before `getDownloadURL`
3. Check the bucket in `storageBucket`

## Detailed fix by platform

### JavaScript

1. 

```javascript
await uploadBytes(ref(storage, "avatars/u1.png"), file);
const url = await getDownloadURL(ref(storage, "avatars/u1.png"));
```


## How to diagnose

1. **Path** — Exact?
2. **Upload** — Complete?
3. **Bucket** — Right?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/gcp/firebase-storage-object-not-found)
