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));
}
});
}
Can't find a movie or TV show? Login to create it.
Vil du vurdere eller legge til dette elementet i en liste?
Ikke et medlem?
Svar av Travis Bell
den 23 April 2017 kl. 7:55 PM
502 (gateway error) is almost always temporary. You might have just been making requests during a high peak period.