I am returning the Promise by resolving the output that I got from Magento: So In the step just above where I am logging the output, it shows me the output but returns null although I returned it as a Promise. Instead if I pass any static data it resolves fine.
So we are getting the response from Magento Client in our Node JS code. It's just that, when we are returning it from Adobe IO endpoint it becomes null during the call. If any static response it gets resolved properly.
For ex: If I resolved the below object then I get the output: let object =
and when I add resolve(object) it gives me the proper response for create customer with static data:
But when I pass the returned response from Magento directly it resolves null. Although it logs the data.