Comments (3)
check the 'method' field in your function definition.
You must define it in lowercase (I checked the plugin code because i had the same issue).
from serverless-api-gateway-caching.
Wow, I would have never thought to check that. Interesting that it was removed in v1.2.0.
I took a quick look in the code for method
:
- toLowerCase: https://github.com/DianaIonita/serverless-api-gateway-caching/blob/master/src/pathParametersCache.js#L14
- toUpperCase: https://github.com/DianaIonita/serverless-api-gateway-caching/blob/master/src/stageCache.js#L107
- neither: https://github.com/DianaIonita/serverless-api-gateway-caching/blob/master/src/ApiGatewayCachingSettings.js#L48
Confirmed: https://github.com/DianaIonita/serverless-api-gateway-caching/blob/master/src/ApiGatewayCachingSettings.js#L48 is the issue. Will do a PR to resolve.
@wmegel Thanks for identifying the root cause!
from serverless-api-gateway-caching.
Thanks @willfarrell and @wmegel - I've just released v1.3.0 which should fix this issue. Let me know if you still run into trouble.
from serverless-api-gateway-caching.
Related Issues (20)
- client certificate as cacheKeyParameters HOT 7
- Upgrade from 1.7.5 to 1.8.0 breaking API Gateway endpoint HOT 6
- Internal Server Error when setting cache key parameter request.header.Authorization HOT 2
- support for httpApi HOT 1
- Support API Gateway V2 HOT 1
- Support on cache by body on POST request HOT 6
- Serverless Offline error HOT 4
- Caching stops working as soon as I set cacheKeyParameters HOT 1
- Is there a way to invalidate all caches for a specific key? HOT 2
- Invalid logging level specified: null on v1.10.0 HOT 3
- Is it possible to ignore non 200 responses? HOT 1
- Getting a bunch of APIs with "Inherit from stage" unexpectedly HOT 4
- TTL configs not applied by Api Gateway HOT 1
- /proxy - cache miss on every request - NestJs HOT 1
- Support Chinese characters in cacheKeyParameters HOT 4
- New serverless release not compliant with pulgin HOT 2
- cacheKeyParameters are always required as of 1.10.3
- Unable to set cache key from the request context HOT 1
- API gateway cacheKeyParameters error HOT 2
- headers caching for multi-tenant HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-api-gateway-caching.