Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

More tasks executed then were scheduled error when xhrrequest a invalid url. #530

Description

@JiaLiPassion

The issue can be described as following case.

varreq=newXMLHttpRequest();req.open('get','file:///test',true);req.send();

the demo is in this plunkerplunker demo

When the open url is invalid or cors disallowed, the "More tasks executed then were scheduled" will be thrown, it may related to issue #287, and the reason is
https://github.com/angular/zone.js/blob/master/lib/browser/browser.ts#L77,
when request to a invalid url ,the browser will cancel the request and call https://github.com/angular/zone.js/blob/master/lib/browser/browser.ts#L69 immediately, it will become a sync call, so the updateTaskcount (macroTask +1) will not be called.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions