Hello everyone!
Someone knows how could I increase the timeout value of an API Request?
I'm doing a request to an API, but this service takes time to respond for the tasks it does and I get on console the error:
Currently this is my code:
app.api.call('GET', app.api.buildURL('WS_Facturacion_Masiva'), null, {
async: false,
success: function(response) {
console.log("SUCCESS");
console.log(response);
if (response != "") {
_this.records = response;
_this.render();
$("#btn_facturar").css("display", "none");
$("#btn_exportar").css("display", "block");
$("#table_records").css("display", "block");
app.alert.dismiss('loading_modal');
}
},
error: function(response) {
console.log('ERROR');
console.log(response);
},
complete: function(response) {
console.log("COMPLETE");
console.log(response);
},
error: function(response) {
console.log("ERROR");
console.log(response);
},
});
I don't know if I could set the value with any parameter, like as 'setTimeout' or 'timeout'.
Someone could help me?
Regards.