This step was still trying to run code when the step ended error running Mongoose code

This topic was automatically generated from Slack. You can find the original thread here.

Calpa Liu : Does anyone know how to use mongoose in Pipedream?
I faced this error:

This step was still trying to run code when the step ended. Make sure you promisify callback functions and await all Promises. (Reason: TLSSocket, Learn more: <https://docs.pipedream.com/workflows/steps/code/async>)

Dylan Sather (Pipedream) : Is the document successfully inserted in your DB? If so, it could be a false positive: https://docs.pipedream.com/workflows/steps/code/async/#false-positives .

If it doesn’t work and you don’t see the document, are you awaiting all methods that return Promises in your code?

Imran Khan : Yeah it looks like this message is displayed anyway. As Dylan said, check if the document is inserted successfully.