-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Fetch API does not support getReader (response.body is undefined) #37505
Comments
|
I upgraded and it still does not work. |
Same issue: |
This issue has been lingering in RN for so long and many people have complained about it. |
Any update? Do I have to use third party fetch? |
Since what I wanted to do was streaming, I ended up using WebSockets, but this should really just be fixed. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Typical react native negligence
…On Sun, 25 Feb 2024 at 4:01 pm, github-actions[bot] < ***@***.***> wrote:
This issue is stale because it has been open 180 days with no activity.
Remove stale label or comment or this will be closed in 7 days.
—
Reply to this email directly, view it on GitHub
<#37505 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABHCJEIXFXJP2TICTVKMJGLYVLAR7AVCNFSM6AAAAAAYJSHQZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSHAYTGNRRGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
With all the AI APIs using SSE this is becoming more and more important. I can use websockets for internal streaming, but where we need to support SSE style APIs that's not an option. Most commercial APIs will prefer to offer streaming over HTTP. |
I managed to find a solution here: #27741 |
Description
When trying to read the response from Fetch as a stream, via
getReader()
, I get an error saying thatresp.body
is undefined. Logging the value ofresp
shows this:Duplicate of #25701 and #25910, but they were closed.
React Native Version
0.71.7
Output of
npx react-native info
Steps to reproduce
Try the code example below.
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: