Hello! 👋 We're running into these
Hello! 👋 We're running into these errors quite a lot.
I'm sure we're missing an
await
somewhere, but our test suite is pretty big, and it's like looking for a needle in a haystack. Any tips on narrowing down which test might be the culprit? We haven't been able to bisect our big test suite, because the error doesn't happen consistently.
Any tips would be more than welcome. Would it be possible to add a bit more data/context to the error?2 Replies
After another day of debugging, it looks like I found the issue. It was caused by a test doing something seemingly harmless like:
But without "consuming" the request body: the key missing piece here was
await res.text()
. Adding that to the test made this error disappear.
This was incredibly hard to find. Maybe you could update the error message with a hint that this could also be a possible source of this error?Thanks so much for this!!!!!
Someone really needs to fix this! The error is so strange...