Coder Social home page Coder Social logo

Comments (4)

mzmiric5 avatar mzmiric5 commented on September 20, 2024 1

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.

mzmiric5 avatar mzmiric5 commented on September 20, 2024 1

Hey @DianaIonita that seems to have resolved the issue. Thanks :)

from serverless-api-gateway-caching.

DianaIonita avatar DianaIonita commented on September 20, 2024

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.

DianaIonita avatar DianaIonita commented on September 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.