reactjs - 通过 cors-anywhere.herokuapp 调用 Hubspot API 的 429(请求过多)错误
问题描述
我正在尝试使用 React 构建一个 Web 应用程序,为此我正在使用 Hubspot API 来管理我帐户中的联系人。对于 HTTP 请求,我将 JavaScript 库“request-promise”与代理服务器一起使用:https ://cors-anywhere.herokuapp.com/
下面的代码:
do{
//Here I'm making http request constantly
}while(process);
在大约 100 个 HTTP 请求之后,应用程序向我显示错误:
GET https://cors-anywhere.herokuapp.com/https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=${hapiKey}&count=1000 429(请求太多)
https://cors-anywhere.herokuapp.com/似乎有速率限制问题。有人对此有任何解决方案吗?
解决方案
您是否尝试过在本地运行服务器?https://github.com/Rob--W/cors-anywhere
推荐阅读
- azure-machine-learning-service - 有没有办法控制模型的版本?
- c# - 在 Unity 中设置时间选择
- c# - 随着无限图的增长,如何不断产生 Perlin 噪声?
- python - 了解 TypeError:“示例”和“示例”的实例之间不支持“<”
- php - 将 wordpress 插件从 php 5 迁移到 7
- android - 退出受感染的应用程序时如何避免会话终止
- java - 在java中打印一个ArrayList
- arrays - 如何快速将 Codable json 数据发送到表视图或集合视图控制器
- java - 是否可以在 Spring Boot 中读取响应的正文?
- python - Pandas:为什么 slice(0,5) 有效,而 slice(0,-1) 无效?