Works on AWS but not on AZURE #466
Replies: 4 comments 10 replies
-
Maybe it's a reverse proxy problem? Could you try adjusting the value of trust proxy for the Azure deployment? |
Beta Was this translation helpful? Give feedback.
-
I remember something about azure putting port numbers in the x-forwarded-for header; take a look at #234 Also, there might be some info in your logs. |
Beta Was this translation helpful? Give feedback.
-
@nfriedly used both keyGenerator and trust proxy but in asuze i dont know how its working like here in code i set the value to 4 request per minute but sometimes it gives (429 Too Many Requests) on 6th request sometime 8th sometimes 9th but the same code works perfectly well on AWS
|
Beta Was this translation helpful? Give feedback.
-
Using this code as suggested and using a route to find the ip, correct me if i am wrong this keyGenerator replaces the port with empty string and directly checks the ip only so it bypasses the milti port for the load balancing in AZURE. Result to the (ip) route - 43.249.53.43:64393
|
Beta Was this translation helpful? Give feedback.
-
Ok so, I have implemented this rate limitter on my nodejs form post apis and the issue is that i have 2 servers one on AWS another on Azure so i have the same code deployed on both, It's working on AWS i have implemented 4 hits in 1 minute as as the paramenters it shows too many requests on the 5th one but the same code is not working on Azure
I am using all the default parameters except the time frame and hit count
Beta Was this translation helpful? Give feedback.
All reactions