Explaination: Response objects are simply a wrapper for a ReadableStream instance, which is a single-use buffer to avoid this error, call the clone() method on the instance before your first read. https://developer.mozilla.org/en-US/docs/Web/API/Response
16
u/LordAmir5 Oct 10 '26
Poor Json.
4
u/Stummi Oct 10 '26
Oh, I know that feeling. When you want to consume something just to realize you already did. Like a chocolate bar or the last few chips from a bag.
Always a bit embarrassing, isn't it?
3
u/Legal-Software Oct 10 '26
Async transubstantiation.
2
u/calculus_is_fun Oct 11 '26
Explaination:
Responseobjects are simply a wrapper for aReadableStreaminstance, which is a single-use buffer to avoid this error, call theclone()method on the instance before your first read.https://developer.mozilla.org/en-US/docs/Web/API/Response
3
u/thunderbird89 Oct 10 '26
How is this funny, though?