0

I'm facing a problem in ajax call. When I have called to given URL, Everything is fine but it is coming in error method of ajax response, Code is below

$.ajax({
    url: "My_URL",
    Method: "Get",
    async: false,
    success: function(msg){ 
        console.log("success");
        console.log(msg);
    },
    error: function(msg){
        console.log("error");
        console.log(msg);
    }
});

Please see the attached image which is fine but response in error method. Why ?

Image of response

Any can guide me please ?

Krzysztof Janiszewski
  • 3,630
  • 3
  • 16
  • 35
Hasnain Bukhari
  • 440
  • 2
  • 6
  • 23

0 Answers0