Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michele Di Maria 34 posts 239 karma points
    Nov 20, 2017 @ 21:22
    Michele Di Maria
    0

    Angular timeout on $http.get

    Hi, I am developing a package that in certain cases takes a lot of time to elaborate. I am using Angular, but the timeout config option in the $http.get method seems not to be respected.

    At the moment I am calling a method like that:

    $http.get('backoffice/xxxxxx/Dashboard/getInfo', {timeout: 300000}).then(function (response) {
    ...
    ...
    

    and I expect a timeout of 5 minutes, but right after 60 seconds the browser reports that the request goes in timeout.

    Is there any workaround to make a request and wait for it for more than 60 seconds?

    Thanks, Michele

Please Sign in or register to post replies

Write your reply to:

Draft