Hello,
Can some share a node js code using axios.all ?
Mine is getting the following error:
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: https://pipedream.com/docs/workflows/steps/code/async)
My code:
import axios from "axios";
let data = params.data;
let configs = [];
data.forEach((event) => {
let config = {
method: 'post',
url: 'myurl',
data: {
"id": event.id
}
};
configs.push(config)
})
await axios.all(configs.map((config) => axios(config))).then(
(data) => console.log(data),
);```