合作伙伴中心-SDK循环调用接口时,提示“too many 429 error responses”错误是什么原因,该如何处理?

时间:2025-02-12 15:04:36

SDK循环调用接口时,提示“too many 429 error responses”错误是什么原因,该如何处理?

循环调用SDK时,报类似如下错误:

urlib3.exceptions.MaxRetryError.HTTPSConnectionPool(host\bss.myhuaweicloud.com', port=443); Max retries exceeded with url: /v2/orders/customer-orders?limit=30&offset=4&order_by=-createTime (Caused by ResponseError('too many 429 error responses'))

报错信息显示由于接口调用过于频繁,被流控,此时通过将limit参数的取值设置大一些提高接口的时延,并减少调用的次数,就可以降低被流控的概率,可以联系客服处理。

support.huaweicloud.com/bpconsole_faq/bpconsole_apifaq_00017.html