This step was still trying to run code when the step ended. Make sure you await all Promises, or promisify callback functions.As the warning notes, this often arises from one of two issues:
await
a Promise. All Promises must be awaited within a step so they resolve before the step finishes.await
all Promisesaxios
is an HTTP client. If you make an HTTP request like this in a Pipedream code step:
axios
returns a Promise. Instead, add an await
in front of the call to axios
:
util.promisify
function.
request
didn’t support Promises natively, but the community published packages that wrapped it with a Promise-based interface (note: request
has been deprecated, this is just an example).