Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
olivierto opened this issue Jul 10, 2023 · 0 comments
Open

Comments

@olivierto
Copy link

olivierto commented Jul 10, 2023

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
@olivierto olivierto changed the title Warning: a promise was created in a handler but was not returned to it Warning: a promise was created in a handler but was not returned from it Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant