So anecdotally Body looks good yet Response seems anaemic
Interestingly (possibly) disturbed is false yet when truthy spits out that error message
/// index.js
function consumeBody() {
var _this4 = this;
if (this[INTERNALS].disturbed) {
return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
}
this[INTERNALS].disturbed = true;
...
the body being processed twice would account for the error but as far as I can tell I am not doing that, possibly something in the resp.json() call is making that happen.
So in my domain code I have something like this where I rely on
resp.json()
to return a Promise.and in my test code I have this:
Running the test I get this error:
the logging just before the
await resp.json()
looks like this:So anecdotally Body looks good yet Response seems anaemic
Interestingly (possibly)
disturbed
isfalse
yet when truthy spits out that error messagethe body being processed twice would account for the error but as far as I can tell I am not doing that, possibly something in the
resp.json()
call is making that happen.Hopefully I'm just doing something silly ...