错误:firebase 代码 = 9999 请求过多 [英] Error: firebase code = 9999 Too many requests

查看:36
本文介绍了错误:firebase 代码 = 9999 请求过多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款使用 Nest API 和 Firebase 的 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;
}

现在,即使我恢复了代码,我在尝试调用 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?

[Firebase] runTransactionBlock:在/devices/thermostats/zbb45BqLd3zfONS5MJ8j3-ybQnsbt5zx 失败:被阻止2015-01-07 15:19:45.157 家庭自动化[7370:1886751] 错误:错误域=com.firebase 代码=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 装置和恒温器的电池寿命,Nest 限制了对 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-速率限制

这篇关于错误:firebase 代码 = 9999 请求过多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆