当我在Postman上调用我的API并传递数据时,它显示响应429,表示请求过多。

huangapple go评论85阅读模式
英文:

When I call my API on postman and pass the data it display response 429 too many requests

问题

我创建了一个博客API,当我调用并传递数据运行API时,它显示429太多请求。

我正在尝试运行API,但它显示429太多请求,所以请给出可能的解决方案。
我无法理解这个问题。

英文:

I created blog API when I call and run the API with passing data Is says 429 too many requests

I am trying to run the API but it say 429 too many requests so give the possible solution on that.
i am unable to getting it so.

答案1

得分: 1

尝试在app/Http/Kernel.php文件中更改throttle参数。

protected $middlewareGroups = [
    'api' => [
        'throttle:60,1',
        'bindings',
    ]
];
英文:

Try changing the throttle parameter in app/Http/Kernel.php.

protected $middlewareGroups = [
    'api' => [
        'throttle:60,1',
        'bindings',
    ]
];

huangapple
  • 本文由 发表于 2023年8月9日 18:02:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/76866648.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定