Hello, thank you very much for your reply.
I also tried returning everything as showed in this post.
Specifically i tried to do this:
return axios(config)
.then((response) => {
console.log(response.data);
return {
statusCode: 200,
body: JSON.stringify(response.data),
};
})
.catch((error) => {
console.log(error);
return {
statusCode: 500,
body: JSON.stringify(error.message),
};
});
But the result is always the same. Probably due to my poor coding skills! But i can’t really figure it out.