Comments (4)
Hey @DianaIonita, thanks for looking into this. We were pretty much in a rush to get this working with our project, so we ended up just making a fork with a quick patch branch which worked for us https://github.com/doubly/serverless-api-gateway-caching/tree/skip-restapi-check . This was really just a band-aid solution where we added skipRestAPICheck
as a custom option that allowed us to ship this to production.
Since our project is not open source, I've created a minimum needed setup repo which is using our fork and branch of the plugin and deploys successfully https://github.com/mzmiric5/sls-api-gw-caching-remoteAPIRef-setup . Let me know if this works for you, and if we can help debug this issue more.
from serverless-api-gateway-caching.
Hey @DianaIonita that seems to have resolved the issue. Thanks :)
from serverless-api-gateway-caching.
Hi @mzmiric5,
I've reproduced the issue you're having, however, I can't get my code to a state where Manually overiding the restApiExists function to return true successfully deploys the functions and correctly enables caching
. It fails for me with this error message: The CloudFormation template is invalid: Unresolved resource dependencies [ApiGatewayRestApi] in the Outputs block of the template
.
Do you have a sample serverless.yml
file (or two, if you're referencing a Rest API from another project) I could take a look at and start debugging?
Thanks
from serverless-api-gateway-caching.
Hey @mzmiric5,
Thank you for the sample code you provided, it made it really easy to see where the issue was.
I just released a new version of the package, 1.1.6, which first checks the yaml for a pre-defined restApiId
.
Please let me know if that solves your problem.
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.