mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
Looks for aborted request
This commit is contained in:
parent
e8d21a4707
commit
1923ea63b6
@ -95,6 +95,9 @@ app.directive('wzTable', function() {
|
||||
$scope.searchTable();
|
||||
return;
|
||||
} catch (error) {
|
||||
if(error && !error.data && error.status === -1 && error.xhrStatus === 'abort') {
|
||||
return Promise.reject('Request took too long, aborted')
|
||||
}
|
||||
return Promise.reject(error);
|
||||
}
|
||||
};
|
||||
@ -134,7 +137,7 @@ app.directive('wzTable', function() {
|
||||
} catch (error) {
|
||||
realTime = false;
|
||||
$scope.error = `Real time feature aborted - ${error.message ||
|
||||
error} - Please refresh your browser.`;
|
||||
error}.`;
|
||||
errorHandler.handle(
|
||||
`Real time feature aborted. ${error.message || error}`,
|
||||
'Data factory'
|
||||
|
Loading…
Reference in New Issue
Block a user