I think I explained an error, I just woke up and I am a little sleepy, the problem is not directly with Botpress it is that when I run this code:
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://api.resos.com/v1/bookingFlow/times?people=3&date=2023-12-27',
headers: {
'Authorization': 'Basic adfgsadfg'
}
};
let data;
axios.request(config)
.then((response) => {
response.data;
console.log(data);
})
.catch((error) => {
console.log(error);
});
I get the response back but if I try to put the response.data inside any variable (botpress or not botpress) like data = response.data it is not working