reimagined / resolve

Full stack CQRS, DDD, Event Sourcing framework for Node.js

Home Page:https://reimagined.github.io/resolve/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Lambda worker was not created due to cold start failure

krutilin opened this issue · comments

Describe the bug

 ERROR  Error: Lambda worker was not created due to cold start failure                                                                                                  15:37:34
    at worker (/var/task/node_modules/@resolve-js/runtime-aws-serverless/es/index.js:66:11)
    at Runtime.t.default [as handler] (/var/task/node_modules/@resolve-js/scripts/lib/alias/$resolve.backendEntry.js:28:22)

To Reproduce

  1. npx create-resolve-app shopping-list -e shopping-list
  2. remove leading slash in app.config
 apiHandlers: [
    {
      path: 'api/shopping-lists.json',
      handler: 'common/api-handlers/shopping-lists.js',
      method: 'GET',
    },
  1. deploy to the cloud and receive the error on deploy.
  2. try to remove the app using "resolve-cloud remove" and receive the error and warning again
 WARN  Shutdown deployment failed with "Lambda worker was not created due to cold start failure"                                                                        16:59:46


 ERROR  Error: Lambda worker was not created due to cold start failure                                                                                                  16:59:51
    at worker (/var/task/node_modules/@resolve-js/runtime-aws-serverless/es/index.js:66:11)
    at Runtime.r.default [as handler] (/var/task/node_modules/@resolve-js/scripts/lib/alias/$resolve.backendEntry.js:28:22)

error Command failed with exit code 1.

Expected behavior
Config validation error.

  • ReSolve Version [e.g. 0.33.0]