Skip to content

Warning: a promise was created in a handler but was not returned from it #574

@olivierto

Description

@olivierto

This is a Bug Report

Description

  • What went wrong?
    When deploying stepfunction a warning appears in console, that breaks serverless cli output (but deployment works).
  • What did you expect should have happened?
    Step function deploying with serverless output in cli as expected.
  • What was the config you used?
  "serverless": "^3.32.2",
    "serverless-esbuild": "^1.45.1",
    "serverless-pseudo-parameters": "^2.6.1",
    "serverless-step-functions": "^3.13.1",
  • What stacktrace or error message from your provider did you see?
(node:94860) Warning: a promise was created in a handler at internal/timers.js:464:21 but was not returned from it, see http://goo.gl/rRqMUw
    at Function.Promise.cast (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/bluebird/js/release/promise.js:225:13)
    at /Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless-step-functions/lib/deploy/stepFunctions/compileStateMachines.js:272:26
    at Array.forEach (<anonymous>)
    at ServerlessStepFunctions.compileStateMachines (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless-step-functions/lib/deploy/stepFunctions/compileStateMachines.js:94:34)
    at processImmediate (internal/timers.js:464:21)
From previous event:
    at package:compileFunctions (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless-step-functions/lib/index.js:123:10)
    at PluginManager.runHooks (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless/lib/classes/plugin-manager.js:530:15)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async PluginManager.invoke (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless/lib/classes/plugin-manager.js:564:9)
    at async PluginManager.spawn (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless/lib/classes/plugin-manager.js:585:5)
    at async before:deploy:deploy (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless/lib/plugins/deploy.js:40:11)
    at async PluginManager.runHooks (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless/lib/classes/plugin-manager.js:530:9)
    at async PluginManager.invoke (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless/lib/classes/plugin-manager.js:563:9)
    at async PluginManager.run (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless/lib/classes/plugin-manager.js:604:7)
    at async Serverless.run (/Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless/lib/serverless.js:179:5)
    at async /Users/olito/Documents/sources/Lambdas/MyStepFunc/node_modules/serverless/scripts/serverless.js:834:9

Additional Data

  • Serverless Framework Core Version you're using: ^3.32.2"
  • The Plugin Version you're using: ^3.13.1
  • Operating System: Mac OS Apple M1 Pro on Ventura

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions