DianaIonita / serverless-api-gateway-throttling

A plugin for the Serverless framework which configures throttling for API Gateway endpoints.
ISC License
71 stars 7 forks source link

Fixed Error: "Unable to find Route by key within route settings" for ApiGatewayV2(HTTP) throttling #34

Closed varad11 closed 1 year ago

varad11 commented 1 year ago

Hello Diana,

I was using your module to create throttling for my HTTP request with "ANY" method on ApiGatewayV2. I was getting following error: Unable to find Route by key DELETE /{proxy+} within the provided RouteSettings I found that for methods with "ANY" type in HTTP gateway, they should have route setting with same method(i.e ANY). So no need to create for all method types since it fails with above error. I have tested these changes in my live environment as well, and they work fine.

Thanks, Varad

DianaIonita commented 1 year ago

Thanks @varad11. I just released v2.0.3 which includes your fix.

varad11 commented 1 year ago

@DianaIonita thanks a lot for publishing these changes on npm. I have one small request. If you have any coding/development activity that you feel need to source out then please kindly contact me. Please find my contact and resume here. Thanks, Varad