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

Fixed problem of Invalid response for blob #11

Closed

Conversation

salvatorecriscioneweb
Copy link

Motivation

According with this: https://github.com/reyalpsirc/react-native/commit/6b1831e

Ios will throw Invalid response for blob error on empty response. Fetch ll auto handle request as blob now. This will happen on 0.54 and later ( so mainly affect sdk26+ , so sdk27 seems bugged too )
I am not the main author of this patch, i'm just forwarding this to expo pull requests. Probably need some verification

Performing a HEAD request with fetch causes an Invalid response for blob error on iOS

Related PRs

https://github.com/reyalpsirc/react-native/commit/6b1831e
xiamx@b35071b
facebook#18223

IMPORTANT NOTES

This is just workaround, It's not a real fix of this behavior , introducing some problems due if used as
blob, and get empty response blob is invalid. To this i suggest to see this one: xiamx@b35071b

That is it, so feel free to refuse this pull request and instead apply xiamx patch.

CATEGORY

[ BUGFIX ]

@anp
Copy link

anp commented Apr 16, 2018

Hi! Thanks so much for the PR! It looks like a fix for the underlying issue was submitted in facebook#18547 and merged, so we'll wait for this to get released and cherry-picked in the appropriate places. Thanks!

@anp anp closed this Apr 16, 2018
@cmeredith
Copy link

cmeredith commented Apr 17, 2018

@anp any estimate on when this might get merged in? This is a fairly significant bug, and the fix was originally authored to RN 24 days ago...

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

Successfully merging this pull request may close these issues.

3 participants