HMS Awareness Kit-Error code 10011 is returned after the SDK is integrated

与世无争的帅哥 提交于 2020-08-10 18:53:11

问题


I integrated the HMS Core Awareness SDK and then called the getWeatherByDevice API to query weather data, but an error occurred: com.huawei.hms.kit.awareness.b.HHG: Error Code: 10005 Desc: barrier or capture frequency limit. Why?


回答1:


This error is caused by too frequent API calls. Currently, there are two restrictions on calling the APIs of HUAWEI Awareness Kit:

  1. The number of API calls within 1 hour cannot exceed 1000.
  2. The number of API calls within 5 seconds cannot exceed 20.

The reasons for such restrictions are as follows:

  1. Frequent API calls in a short period of time are not normal service requirements.
  2. Frequent API calls increase the workload of HMS Core and even cause a failure to provide services for other developers.

The restrictions are only a temporary workaround, and will be eliminated after service optimization.



来源:https://stackoverflow.com/questions/62034152/hms-awareness-kit-error-code-10011-is-returned-after-the-sdk-is-integrated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!