Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async calls cause InvalidStateError in IE 11 #1483

Closed
jakubukrop opened this issue Mar 22, 2018 · 1 comment
Closed

Async calls cause InvalidStateError in IE 11 #1483

jakubukrop opened this issue Mar 22, 2018 · 1 comment
Assignees
Labels
Bug Addressing a bug

Comments

@jakubukrop
Copy link

HttpProvider.sendAsync() causes InvalidStateError in IE 11

It seems that IE has a problem when request.timeout is set before request.open().
See lib/web3/httpprovider.js:

HttpProvider.prototype.prepareRequest = function(async) {
    var request;

    if (async) {
        request = new XHR2();
        request.timeout = this.timeout; // <-- IE11 needs this after request.open()
    } else {
        request = new XMLHttpRequest();
    }
    request.open('POST', this.host, async);

Note: The same issue has been reported in other projects: stephanebachelier/superapi#5
and airbrake/airbrake-js#302

@nivida nivida self-assigned this Aug 9, 2018
@nivida nivida added the Bug Addressing a bug label Aug 9, 2018
@nivida
Copy link
Contributor

nivida commented Feb 27, 2019

This got fixed here: 0207369.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Addressing a bug
Projects
None yet
Development

No branches or pull requests

2 participants