The function jQuery.ajax()that I use works correctly most of the time. However, sometimes it does not return any data. Instead, a function is called error().
$.ajax({
[...]
, error: function(jqXHR, textStatus, errorThrown) {
console.log(jqXHR);
console.log(textStatus);
console.log(errorThrown);
}
});
I see that in those cases textStatusthere is 'error'and errorThrownis ''(empty).
jQuery documentation only contains the possible values textStatus( "timeout", "error", "abort"and "parsererror"). However, he does not describe what it means 'error'.
jqXHR returns an object, but it is not a seam to reveal additional information.
How can I find out what is the source of this problem?
source
share