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));
}
});
}
¿No encuentras una película o serie? Inicia sesión para crearla:
¿Quieres puntuar o añadir este elemento a una lista?
¿No eres miembro?
Contestado por Travis Bell
el 23 de abril de 2017 a las 19:55
502 (gateway error) is almost always temporary. You might have just been making requests during a high peak period.