Giter VIP home page Giter VIP logo

Comments (4)

FilipeAleixo avatar FilipeAleixo commented on August 15, 2024

Just pinging you to show what I've built using your repo: https://github.com/EsteFilipe/discord-ethereum-authentication

Thanks for the clean code :)

from serverless-discord-bot.

ytausch avatar ytausch commented on August 15, 2024

As far as I understand, this error occurs when a bug is introduced into CreateCommandsFunction that prevents CfnLambda to run as intended and post the custom resource status back to CloudFormation via a pre-signed URL that is provided to the Lambda function. (For more details of how CloudFormation custom resources work under the hood, refer to here).

As long as the CloudFormation resource update is running, it's not possible to update or delete the stack.

Unfortunately, the timeout period for custom resource status updates is quite long (2 hours?) and as far as I can tell, there is currently no way to change this.

The only options I see are:

  1. Wait for the custom resource to timeout and create another stack for development in the meantime
  2. Try to send the status update via HTTP yourself (link) - note: I didn't try this myself

I agree that this is very annoying during development but I do not see any way how to make things easier here. This would be AWS`s turn. If you find out something new with regeard to this issue or if it works out well to send the expected status update yourself - feel free to share!

By the way: Your project looks awesome! Thanks for sharing!

from serverless-discord-bot.

FilipeAleixo avatar FilipeAleixo commented on August 15, 2024

Thanks for the thorough explanation!

The only way I've found to overcome this for development was to just keep creating stacks with new names, while leaving the failed ones so that they time out and I delete them later. This seems like quite a shortcoming from Cloudformation - they even have videos like this one suggesting a hack of send a signal to the lambda in order to be able to delete it https://www.youtube.com/watch?v=hlJkMoCxR-I

from serverless-discord-bot.

raisen avatar raisen commented on August 15, 2024

Just FYI, I was having problems with CreateCommandsInvoker hanging and was able to fix by increasing the Cloudformation timeout which defaults to 3 seconds.

Also, I've upgraded to Node 18 and didn't find any issues.

Thank you for this repo!

from serverless-discord-bot.

Related Issues (6)

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.