Promise warning when running Postmark sendEmail method

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

Bharat Kilaru : Hey team - had an error with a Postmark integration about token.trim not being a function. Is there an example of how you suggest using the Postmark one? Thanks!

Dylan Sather (Pipedream) : Hi , would you mind sharing your workflow with dylan@pipedream.com? I’d like to see what the issue is

Bharat Kilaru : Yep, done

Dylan Sather (Pipedream) : FYI I’ll need to take a deeper look and test with a Postmark account. I’ll let you know when I have more information

Dylan Sather (Pipedream) : do you see the warning just below the execution of the most recent event?

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

<postmark.js/ServerClient.ts at cfe00158d259c305352131866263d2077f7b7dcb · wildbit/postmark.js · GitHub)sendEmail method returns a Promise , so you’ll need to await it. Check out this example workflow. Let me know if that works for you.

Bharat Kilaru : Yep, that worked. Thanks!