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.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on April 23, 2017 at 7:55 PM
502 (gateway error) is almost always temporary. You might have just been making requests during a high peak period.