Repository navigation
Fetch API does not support getReader (response.body is undefined) #37505
Description
Activity
⚠️ Newer Version of React Native is Available! ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.71.8. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. Reacted by Kevin Thoriya- added🌐NetworkingRelated to a networking API.Related to a networking API.
on May 21, 2023 I upgraded and it still does not work.
Reacted by Kevin Thoriya, xuergo, poro-ola and OllieSame issue:
respnse.json()is valid, howeverresponse.bodyisundefinedReacted by LuisAFK, Kevin Thoriya, xuergo, GemsGame, poro-ola and MehdiThis issue has been lingering in RN for so long and many people have complained about it.
As it stands now fetch within RN is not spec complaint
#27741Any 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.
- addedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Feb 25, 2024 - 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: ***@***.***>Reacted by Coder Gautam, Valerii Smirnov, Ekim Cem Ülger, Ivan Castro Duran, Joshua Sosso (Deprecated), lukben2000, Luciana-Ayala, Mehdi, Lukas Hahn and sambouchard-newformaReacted by Kamal Berrada, PseudoRAM, Ivan Castro Duran, Joshua Stupplebeen, islam hamdi, Lukas Hahn and sambouchard-newformaReacted by Ivan Castro Duran, Ben, Lukas Hahn and sambouchard-newforma
- removedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Feb 25, 2024 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.
Reacted by LuisAFK, Joshua Sosso (Deprecated), Hubert Walczak, Anderson Vanzo, Nikita Kovantsov, Ovidiu Cristescu and OllieI managed to find a solution here: #27741
For Expo users, Expo v52 introduces expo/fetch API which is Winter-CG compliant. We can simply use it instead of native fetch API.
Reacted by Joshua Sosso (Deprecated) and sugeulReacted by OllieCan the ReactNative team take a look at this requirement?
@cortinicoStill not available as 0.80
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.
- addedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Feb 10, 2026 Bump. It is still an issue.
- removedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Feb 10, 2026 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.
- addedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Aug 10, 2026 Bump. Still an issue.
Reacted by Joshua Sosso (Deprecated)- removedStaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
on Aug 11, 2026
Description
When trying to read the response from Fetch as a stream, via
getReader(), I get an error saying thatresp.bodyis undefined. Logging the value ofrespshows this:Duplicate of #25701 and #25910, but they were closed.
React Native Version
0.71.7
Output of
npx react-native infoSteps to reproduce
Try the code example below.
Snack, code example, screenshot, or link to a repository