Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: firebase code = 9999 Too many requests

I'm working on an iOS home automation app that uses Nest API and Firebase. I started getting this error after changing up the FirebaseManager subscription init method by basically commenting out dispatch_once block (I wanted to see if I could run it more than once):

+ (FirebaseManager *)sharedManager
{
    static dispatch_once_t once;
    static FirebaseManager *instance;
    
    dispatch_once(&once, ^{
        instance = [[FirebaseManager alloc] init];
    });
    
    return instance;
}

Now, even when I revert the code, Im still getting the error below when trying to make calls to the API. Any ideas as to how I can fix my app?

[Firebase] runTransactionBlock: at /devices/thermostats/zbb45BqLd3zfONS5MJ8j3-ybQnsbt5zx failed: blocked 2015-01-07 15:19:45.157 Home Automation[7370:1886751] Error: Error Domain=com.firebase Code=9999 "Too many requests" UserInfo=0x17026fa00 {NSLocalizedDescription=Too many requests}

like image 516
Borys German Avatar asked Aug 11 '26 06:08

Borys German


1 Answers

In order to protect the HVAC units and the battery life of the thermostat, Nest restricts the number of calls to the API. Please see the following for a description of the rate limits.

https://developer.nest.com/documentation/cloud/data-rate-limits

like image 103
Lionel Iorgulescu Avatar answered Aug 13 '26 00:08

Lionel Iorgulescu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!