问题
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:
- The number of API calls within 1 hour cannot exceed 1000.
- The number of API calls within 5 seconds cannot exceed 20.
The reasons for such restrictions are as follows:
- Frequent API calls in a short period of time are not normal service requirements.
- 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