Laravel 6 error 429: X-Ratelimit-Remaining deducts higher than expected

414 Views Asked by At

Hello I am using Laravel Framework 6.18.23 and when ever my Vue app connects to the API it deducts more than what I expected.

Here is the sample screenshot below

enter image description here

As you can see I tried to login in my app 3 consecutively but laravel deducts more than 3 on a x-ratelimit-remaining. Additionally the x-ratelimit-remaining not resetting after 1 minute.

Any idea what might be the reason?

I tried php artisan cache:clear but still the issue exists

This issue only exist in production environment not in nonprod or preprod but I don't know where to start investigating

1

There are 1 best solutions below

0
On

Thanks to Clément Baconnier comments for pointing me in the right direction. It turns out that our laravel was hosted in a proxy server so everyone who access our site has the same ip address so everyone share the 60 request per minute limitation on laravel ThrottleRequests.php

enter image description here