I have an AJAX request that returns certain data from my database when the user filters some information, sometimes the filters work 100%, but sometimes it returns within the error
of the request the following message:
Object {readyState: 4, responseText: "", status: 200, statusText: "OK"}
Does anyone know what it can be? I searched the forum for topics related to the subject but nothing solved. The strange thing is that in some requests returns this error does not appear.
AJAX call follows:
$.ajax({
url: 'datacenter/functions/filtraDados.php',
type: 'POST',
dataType: 'JSON',
contentType: "application/json; charset=utf-8",
data: {usuario: $("#dropdown-user").val()},
success: function(data){
$("#filtro-rede").text(data[0][0]['rede']);
$("#filtro-loja").text(data[0][0]['loja']);
},
error: function(error){
//alert('Ocorreu durante a execução do filtro. Tente novamente mais tarde!');
console.log(error);
}
})