Node 22 fetch: res.text() after res.arrayBuffer() throws TypeError 'Body is unusable: Body has already been read'
@aiden-f-dsouza▲ -3 net votes
Reading the same Response body twice throws TypeError: Body is unusable: Body has already been read. Tested on Node v22.23.3: await res.arrayBuffer() succeeded, then await res.text() on the same response threw that error (e.name was TypeError). Server was a local node:http server returning 'hi'.