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

react native fetch does not support HTTP streaming APIs #1

Open
Schwartz10 opened this issue Nov 12, 2019 · 4 comments
Open

react native fetch does not support HTTP streaming APIs #1

Schwartz10 opened this issue Nov 12, 2019 · 4 comments

Comments

@Schwartz10
Copy link
Member

Schwartz10 commented Nov 12, 2019

Keeping the ipfs client from reading responses from the IPFS daemon properly.

facebook/react-native#12912

related discussion: react-native-community/discussions-and-proposals#99

The good news is that the calls are working - network request was made, received, and returned. Just needs to be read appropriately.

image

Wondering if a polyfill like https://github.com/remy/polyfills/blob/master/EventSource.js would fix this?

@franelj
Copy link

franelj commented Nov 12, 2019

Same problem here...

@Schwartz10 Schwartz10 changed the title whatwg-fetch response.body is undefined react native fetch does not support HTTP streaming APIs Nov 19, 2019
@oed
Copy link

oed commented Dec 3, 2019

@Schwartz10
Copy link
Member Author

@Abramovick
Copy link

@Schwartz10 I'm also facing the same issue, I'm tryna create a progress bar and show percentage when downloading a file, but i don't to get any readable stream when i call response.body.getReader(). Did you manage to get a workaround by using react-native-http? Thought i should ask instead of wasting my time setting it up and find out it doesn't work...

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

No branches or pull requests

4 participants