reactjs - 使用 Google Books API 时收到 403 响应错误代码
问题描述
所以我正在使用Google Books API,我的代码如下所示:
axios
.get(
"https://www.googleapis.com/books/v1/volumes?q=" +
this.props.categoryName +
"&key=myKey"
)
.then((response) => {
console.log(response);
})
.catch((err) => console.error(err));
在使用此 API 时,我收到以下错误:
我在网上做了一些研究,据说当我们从给定的 API 密钥发出太多请求时会出现这个错误,但到目前为止我只发出了 5 个请求,但它仍然抛出这个错误。
解决方案
The default limit is 1,000 per day.
更多信息 - https://www.codementor.io/@srvkataria/how-i-bypassed-google-books-api-rate-limits-or-quota-vpmra29q0
推荐阅读
- android - Android警报对话框故障
- installation - WIX 引导程序 UI 标题栏颜色更改
- c# - 将抽象类型转换为 7 种可能的其他类型
- overriding - 如何在 Micronaut 应用程序的测试中从 Run on StartupEvent 覆盖 OnApplicationEvent 方法
- c++ - AVFormatContext 错误:我无法获取 AVFormatContext
- css - Tailwindcss 排版:在有序列表中自定义 h3::before
- mysql - 在 MySQL 中通过具有多个值的 JSON 数组进行查询
- c - 即使设置了主题,zmq pub sub 也不起作用
- r - 如何在时间序列中定义我的日期以获得每一行的正确值?
- platform - 申请待定/等待Linkedin的申请和审核