Hi guys, I’ve got a serious problem… when I’m testing my app on devApp, I want to executee an http resquest ( with the native structure ) like this in a function :
this.httpB.get('https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=lyc%C3%A9e_Aubanel__Avignon__84000|Centre_Pompidou__Paris__France|superU__courth%C3%A8zon__France|Bordeaux__France|lyc%C3%A9e_des_lazaristes__Lyon__France&destinations=lyc%C3%A9e_Aubanel__Avignon__84000|Centre_Pompidou__Paris__France|superU__courth%C3%A8zon__France|Bordeaux__France|lyc%C3%A9e_des_lazaristes__Lyon__France&key=MY_API_KEY', {}, {})
.then(data => {
console.log(data.status);
this.test = data.data;
console.log(data.headers);
})
.catch(error => {
console.log(error.status);
console.log(error.error); // error message as string
console.log(error.headers);
});
But as soon as I click the button, the app closes and I don’t know why… This kind request work on the very same device and app ( with a much shorter url ) so that sounds weird…
PLEASE HELP