Skip to content

Invalid responseType: blob #21

Open
@BuddhaBing

Description

@BuddhaBing

After installing this library and using react-native-polyfill-globals to polyfill, I'm unable to successfully fetch any data because every request results in Invalid responseType: blob. I encountered this both on an existing project (which uses react-native v0.72.7) and on a completely new/clean app that I spun up to test (again using react-native v0.72.7).

If I add the following to the root index.js file, it works but I'm not sure why this fixes it (this is some code recommended to get network logs working in the now deprecated React Native Debugger) or what the implications would be:

global.XMLHttpRequest = global.originalXMLHttpRequest || global.XMLHttpRequest;

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