Skip to content

[iOS] subsequent window.fetch calls giving error Unable to resolve data for blob: (null) with RN 0.59.6 #352

@gitpayal

Description

@gitpayal
  • rn-fetch-blob: 0.10.15
    react-native: 0.59.6
    react: 16.6.3

Sample Code:
I am uploading file to firebase using this code

const Blob = RNFetchBlob.polyfill.Blob;
const fs = RNFetchBlob.fs
const originalXMLHttpRequest = window.XMLHttpRequest;
const originalBlob = window.Blob;


After doing my successful upload with rn-fetch-blob library on firebase, I assign back default value to window.Blob and window.XMLHttpRequest.

  window.XMLHttpRequest = originalXMLHttpRequest
   window.Blob = originalBlob;


This part was working perfectly fine before react-native update.

After update react-native (v0.57.8 to v0.59.6) , when I use window.fetch after upload , it is giving me error "Unable to resolve data for blob: (null)"

Any solution for this

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