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));
}
});
}
Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.
Diesen Eintrag bewerten oder zu einer Liste hinzufügen?
Kein Mitglied?
Antwort von Travis Bell
am 23. April 2017 um 19:55
502 (gateway error) is almost always temporary. You might have just been making requests during a high peak period.