Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Timeout not working/ignore in Http Request

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>