Hi,
I not understand why this code doesn't work, and I receive Error Status: 502
function provaInvioRichiesta(){
var myUrl = "https://api.themoviedb.org/3/search/movie?api_key=###&language=en-IT&query=rambo";
$.ajax({
url: myUrl,
contentType: "application/json",
type: "GET",
beforeSend: function(){
alert("myUrl: "+myUrl);
},
success: function(data) {
alert("It worked");
console.error(JSON.stringify(data));
},
error: function(err) {
alert(JSON.stringify(err));
}
});
}
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 23 avril 2017 à 19h55
502 (gateway error) is almost always temporary. You might have just been making requests during a high peak period.