发送连续查询时,Errr代码0随机回复。 [英] Errr code 0 is replied randomly When sending continuous query.

查看:78
本文介绍了发送连续查询时,Errr代码0随机回复。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试连续向Face API服务器发送一些查询时,

When I try to send some queries to Face API server continuously,

错误0代码随机回复。

以下代码是为使用该功能而构建的"身份"。

Following codes are built for using the function "Identity".

代码将一些(3)人注册到一个PersonGroup,尝试"身份"函数。

The code registers some (3) Person to a PersonGroup and try to the "Identity" function.

然而,函数是否成功取决于运气。

However, whether the function is success or not is dependent on a luck.

它有时会完成,有时会失败返回0代码。

It sometimes be done and sometime be failed returning 0 code.

https:// github。 com / betterwaysystems / FaceAPI / blob / master / ts / main.ts#L17-L26

https://github.com/betterwaysystems/FaceAPI/blob/master/ts/main.ts#L17-L26

https://github.com/betterwaysystems/FaceAPI

https://github.com/betterwaysystems/FaceAPI

因此,我想知道原因。为什么不能一致地但是随机地成功或失败?

Thus, I want to know the reason. Why do not success or fail consistently but randomly?

对于重新查询期间是否有一些限制,例如

Is there some restriction about re-querying period like

"你不能重新发送查询直到50毫秒后" ?

"You can't re-send a query until 50 milliseconds later" ?

感谢阅读和我等你的回答。

Thanks for reading and I'm waiting for your answer.

推荐答案

如果你在免费套餐上,你很可能达到配额限制。

If you're on the free tier, you are quite likely hitting the quota limits.

在你的包装器中,你应该为错误响应添加一个处理程序,特别是403/429。 如果您已超出配额,HTTP响应也应包含Retry-After标头。

In your wrapper, you should add a handler for error responses, 403/429's in particular.  The HTTP response should also contain a Retry-After header if you've exceeded your quota.


这篇关于发送连续查询时,Errr代码0随机回复。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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