错误:火力点code = 9999请求过多 [英] Error: firebase code = 9999 Too many requests
问题描述
进出口工作对使用鸟巢API和火力地堡的IOS家庭自动化应用。我一开始就基本上注释掉dispatch_once块改变了FirebaseManager认购init方法后收到此错误(我想看看我是否能运行超过一次):
Im 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;
}
现在,甚至当我恢复了code,林仍然得到试图使该API调用时,下面的错误。任何想法,我怎么能解决我的应用程序?
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?
[火力地堡] runTransactionBlock:在/设备/恒温/ zbb45BqLd3zfONS5MJ8j3-ybQnsbt5zx失败:受阻
2015年1月7日15:19:45.157家庭自动化[7370:1886751]错误:错误域= com.firebase code = 9999太多的请求的UserInfo = {0x17026fa00 = NSLocalizedDescription请求过多}
[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}
推荐答案
为了保护HVAC单位和温控器的电池寿命,巢限制调用API的数量。请参阅速率限制的介绍,以下。
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-速率限制
这篇关于错误:火力点code = 9999请求过多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!