Firebase storage Quota has been exceeded

user2399432 picture user2399432 · Jul 13, 2016 · Viewed 29.4k times · Source

I have set up a test account on firebase just for development purposes.

I made use of the storage feature and so I uploaded manually an image with the size of 400kb which later I downloaded through an IOS application.

All of a sudden the application stopped working and I cannot access the storage from the console.. I get the message "warning Can't connect to server. Try again in a few minutes."

By searching in the stackoverflow, I found some people claiming that this has to do with multiple google accounts signed in from the same browser etc..

The IOS application though, logs the following error:

Error Domain=FIRStorageErrorDomain Code=-13000 "An unknown error occurred, please check the server response." UserInfo={object=images/nicewall.jpg, bucket=partyreports-49b0a.appspot.com, ResponseBody={ "error": { "code": 402, "message": "Quota has been exceeded for this project. Please visit the Firebase pricing page to learn more." }

Please pay attention to the message "Quota has been exceeded.."

How is this even possible? The analytics/events shows "session_start:193" which I assume is how many times the application connected to the Firebase.

Now if my calculations are correct 193x400KB is way less than the 30GB traffic limit..

It is worth noting that I have a second project setup under the same account which I don't use at all.. and the storage is accessible..

After googling a bit, I found that I should have billing information setup.. and so I did.. after a few minutes I can access the storage again..

How can I tell what was wrong?

  • Was it the billing account? Or that was a random incident?
  • I do NOT believe my app exceeded the limits
  • How often the limits reset?
  • Where can I see the actual limits for each service/feature?

Thanks and sorry for the long post!

Answer

Mike McDonald picture Mike McDonald · Jul 15, 2016

Sorry you had issues! Here are some answers:

  • Was it the billing account? Or that was a random incident?

Unsure why it happened--it's possible that there's a bug in our quota system, or it's possible that you ended up storing or sending more data than you thought. I'm not sure how you're using storage, but if you've got a 400kB image and we have a 1GB/day limit, that's 2500 downloads/day. If you've got 200 users, and they use the app routinely, and the file is downloaded on app start every time, that might explain extra usage.

Our free plan offers 30GB outgoing bandwidth per month, 5GB of data storage total , and 20,000 uploads and 50,000 downloads operations per day--once these limits are hit, the app won't work until the quota resets, or until you upgrade your app. Once you upgrade, the quota limit is removed and the app works, which is why your problem went away.

  • How often the limits reset?

The bandwidth is 30GB/month, enforced as a daily limit (so every 24 hour period means you're allotted 1GB of bandwidth). This limit resets every day.

Storage is 5GB total, and once exceeded you need to remove additional data (or upgrade your plan) before the app works again.

Operations are 50,000 downloads and 20,000 uploads per day.

See the quota limit docs for more info.

  • Where can I see the actual limits for each service/feature?

We're working on exposing usage data for each service in their respective sections of the Firebase Console. Stay tuned for more on this.