Skip to content

In IE11 resolve is not always executed #533

Closed

Description

@petronellius

Our app is making scheduled request every N seconds. After some time IE11 stops doing requests.
I try to search web and it looks like there is a bug in IE11. It does not handle XHR callbacks properly.
See similar issue on bluebird repository.
So I try workaround - wrap resolve to setTimeout and it works.

Activity

  1. mislav commented on Jun 12, 2017

    @mislav
    Contributor

    Thanks for letting us know. Unfortunately, I don't think there is anything we can do here to fix IE behavior, sans wrapping every XHR call in an arbitrary setTimeout. We won't do that, because if we choose a value for the timeout e.g. 10 seconds, then we prevent everyone from making requests that may take longer than 10 seconds.

    The workaround which you can do in your project is wrapping all your fetch calls in a Promise-based timeout helper as suggested here.

  2. added a commit that references this issue on Oct 23, 2017
  3. CrOrc commented on Oct 24, 2017

    @CrOrc
    Contributor

    Please reopen this issue.

    This issue is not about making XHR call in setTimeout but about resolving Promise with results from completed XHR.

    In IE 11 calling resolve within XHR onload handler may hang indefinitely if there's no active DOM operations. But calling resolve within setTimeout works fine.

  4. mislav commented on Oct 27, 2017

    @mislav
    Contributor

    Ah, I realize now what the OP was proposing above. Thanks for providing more information.

  5. reopened this on Oct 27, 2017
  6. ADagen commented on Dec 18, 2017

    @ADagen

    Hey guys, let's move on.

  7. locked as resolved and limited conversation to collaborators on Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions