以最轻微的负载达到 YouTube API 服务限制 [英] Hitting YouTube API serving limit with the slightest load
问题描述
我在 parse.com 上有一个脚本,它使用 YouTube v3 API 从大约 10 个频道导入有关最近视频的新信息.它运行良好有一段时间,但大约一个月前它开始每天失败一两次并出现错误:
<块引用>错误:无法获取
我认为这是 YouTube 端的问题,似乎与实际使用的配额无关.
在过去的几周里,我偶尔会遇到很多这样的错误,而且似乎没有任何原因 - 请参阅 YouTube 数据 API -超出服务限制"
I have a script at parse.com which imports a fresh information about recent videos from ~10 channels with YouTube v3 API. It worked well for some time, but about a month ago it started to fail once or twice per day with an error:
Error: can't fetch https://www.googleapis.com/youtube/v3/... "error": { "errors": [ { "domain": "usageLimits", "reason": "servingLimitExceeded", "message": "Serving Limit Exceeded" } ], "code": 403, "message": "Serving Limit Exceeded" }
As you can see from the following screenshot I use maximum 37k of 50000k units available per day. I estimate one script run could take maximum 2k units. To make absolutely sure I'm not hitting 3k units/second/user limit I've added 1 second delay before every call to YouTube API, but I still see those errors occasionally.
What's going on? Does YouTube v3 API have some other limits, for example units per IP? (one IP at Parse could host thousands of installations)
I think this is a issue on YouTube's end and doesn't seem related to the actual quota used.
I have been getting quite a few of these errors sporadically, and seemingly for no reason, over the last few weeks - see YouTube Data API - "Serving Limit Exceeded"
这篇关于以最轻微的负载达到 YouTube API 服务限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!