Mr.Noob
Mr.Noob

Reputation: 1005

Too many requests FirebaseError

I've come across this error with Firebase saying too many requests. I've read the nest api saying that they have limited the number of requests to avoid battery drainage on the device. But on the official nest android app you can switch on/off (changing to heating/off) the thermostat without an issue.

Any idea why this is limited in the developer api?

Upvotes: 0

Views: 2965

Answers (2)

Ronn Wilder
Ronn Wilder

Reputation: 1368

I faced this issue with firebase firestore database while reading too much data at once. I don't know exact limit breach but it worked for around 1600 reads in Promise but didn't work for 26000. So my solution was to divide the whole thing in buckets, make their Promise and then read and it worked.

Upvotes: 2

jfudgeelder
jfudgeelder

Reputation: 423

The API limits the number of requests to preserve battery life and it will also stop accepting requests completely if the battery level drops too low. Take a read through this page on the Nest API site about limitations.

I would expect if you keep flipping the on/off switch in the Android app, it would also quit working after a while. You can pull up the battery state and look at it, so maybe someone will determine what the upper/lower limit is?

Upvotes: 2

Related Questions