Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"message": "API rate limit exceeded" #19

Open
chowaikong opened this issue Jun 17, 2017 · 8 comments
Open

"message": "API rate limit exceeded" #19

chowaikong opened this issue Jun 17, 2017 · 8 comments

Comments

@chowaikong
Copy link

请问是否每个接口都有请求次数限制?我目前只是开发阶段,貌似都是那几个分类的文章列表的请求都是返回这个信息。
例如:https://api.qingmang.me/v2/article.list?category_id=p2833&token=

@chowaikong
Copy link
Author

再观察一下发现是不是限制了一定时间内允许请求的接口数量,某个大类如果同时请求所有子分类的文章列表就会发现有些子类的请求就会返回这个错误,我单独把每个请求在浏览器打开就是正常返回了。

@duguguiyu
Copy link
Contributor

是有限制,你用的是测试 token 么?

@chowaikong
Copy link
Author

是测试的 token,今天还发现如果请求某个分类的的文章列表下一页过快也会出现这个问题,请求下一页的时间不好控制,尤其是我在测试分页的数据,如果我自己做延迟对用户是不友好的,尤其是移动网络速度较慢的情况下,不知道能不能修改一下分页的请求时间限制?

@junyu
Copy link
Member

junyu commented Jul 10, 2017

测试 token 不应该用于生产环境给用户使用,你拿正式 token 就没有这些限制了

@chowaikong
Copy link
Author

目前我还没拿到正式 token

@junyu
Copy link
Member

junyu commented Jul 10, 2017

我知道呀,我只是说你不应该把测试 token 用在生产环境

@chowaikong
Copy link
Author

我目前还在开发环境,并没有正式发布,以上场景是我自己测试模拟的。

@junyu
Copy link
Member

junyu commented Jul 10, 2017

那就没有所谓「对用户不友好」的问题嘛。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants