Isomorphic fetch returns response with empty stream body

Author: y-chandraCreated Sep 14, 2023Updated Mar 22, 2024

Hi team - After updating to NodeJs 18, we've started to see an issue where making an HTTP request using isomorphic-fetch to a url that returns streamed response returns a response with an empty stream even though the status returned is 200. Sharing the screenshots for the responses on NodeJS < 18 vs NodeJs >=18

Response returned on NodeJS < 18 Screen Shot 2023-09-13 at 4 54 41 PM

Response returned on NodeJs >= 18 Screen Shot 2023-09-13 at 4 56 59 PM

Source: matthew-andrews/isomorphic-fetch