User36583972 posted
Hi petercli,
status of 500 (Internal Server Error) is seen when the page loads . Any tips how to debug this ?
Your tutorial is explain more detailed. Please make sure you have a correct url to call Get Method.
You can use F12 to view the HTTP Request and Response.
You can also try the following ajax code to call a get method.
$.ajax({
url: "http://182.18.161.151:9010/api/planes",
type: "Get",//Post"
headers: { "Accept": "application/json; odata=nometadata" },
contentType: "application/json; charset=urf-8",
dataType: "json",
success: function (response) {
alert(response)
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert("error-Put:" + textStatus + " " + errorThrown);
}
});
Best Regards,
Yohann Lu