Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Promise neither resolved nor rejected in IE 11 #345

@deepfriedbrain

Description

@deepfriedbrain

I have an application hosted on Google App Engine using Google Cloud Endpoints 1.0. The frontend is React based and using Google Javascript Client API to make calls to the Endpoints APIs. I'm using babel-polyfill. Everything has been working fine on modern browsers (Chrome, FF, Safari, Edge).

But recently I found that some of the Google API calls to my endpoints on IE 11 were neither getting resolved nor rejected. After further investigation, I found that if response payload was small (1-2KB) enough, the API calls would get resolved. But if the payload is even slightly (5KB+), the call would neither resolve nor reject for the very same API that worked with a small response payload. Basically, any API that returns a small payload works, and any that returns slightly larger payload fails.

It used to work correctly when I last tested it around Feb this year. My application has been stable for the past few months and I've not made any major changes.

In the IE 11 Dev console, I can see that the request is successful with the response code 200, and all the data is coming back in the response body without any issue. But the promise is not resolved even when the request is successful. Most requests usually complete within 2 secs.

Since the exact same code works if the response payload is small, the issue is unlikely to be related to the code (I can safely say it is not a polyfill issue). I have spent several hours debugging the issue and really out of ideas now.

Any help or ideas would be really appreciated.

Here's the stub for my API call:

gapi.client.myendpoint.getData({param}))
    .then(resp => {
        // process response
    }
}, resp => {
    // handle error
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions