downloadResumable.downloadAsync() returning invalid header name error

Please provide the following:

  1. SDK Version: 44
  2. Platforms(Android/iOS/web/all): android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Hello, I’m having the same problem as found in this thread: downloadResumable.downloadAsync() stopped working

It started immediately after upgrading from SDK 40 to SDK 44.
if there is a way to see the headers that DownloadResumable.downloadAsync() is sending that would be a great help.

sample code:

/// modified for convenience. based on previously working code 
let uri = "https://blackops5.blob.core.windows.net/multi01deveric/TL8520/98%202390d35b-5bf8-492f-a108-e47b3c2d82fe_thumb.png",
retrievedFile = {uri};
const downloadResumable = FileSystem.createDownloadResumable(
    uri,
    "testFileName.png",
    {},
);
try {
    retrievedFile = await downloadResumable.downloadAsync();
    if ([400].includes(retrievedFile.status)) {
        console.log({ resp: await FileSystem.readAsStringAsync(retrievedFile.uri) })
    }
} catch (e) {
    console.log({ e, retrievedFileHash }, thisFile)
    return { uri }
}

Hi @blackops

I don’t get the error you’re referring to: