@anicacute09 wrote:
Good day Ionites,
As the title says I was facing a problem with using timeout inside Http Request like Get, Post and Put etc… I want to cancel(stop) the request when a certain time meets or if the duration is too long(probably because of Slow Connection) but to my surprise it ignores completely the timeout and keeps on. Below is an example of it… Can anyone explain to me why it ignores the timeout? Thanks in advance.
Ex:
$http.get(“http://localhost:8100/api/v1/search”, { timeout: 10000} )
.success(function (data) {}) .error(function (data) { });
Posts: 1
Participants: 1