You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new in using jest and playwright but using it is really a breeze. I don't have anymore detailed explanation but what i wrote in the title. What does this message mean?
Unfortunately, response body is not always available. For example, it is not available for redirect responses, when server responds, for example, with 302 server redirect. According to our tests, this should be the case for all browsers. My guess would be that server sends different response for Firefox in your particular case.
I'd suggest to catch the error when accessing response.body:
page.on('response',asyncresponse=>{constbody=awaitresponse.body().catch(e=>null);if(!body)console.log('Failed to fetch response body');elsedoSomethingWithResponseBody(body);});
I found out that in my case, it was 304 responses that i keep getting, and i think it's because my tests sometimes involves a lot of calling the same endpoint.
But now i wonder why this only happens on Firefox though. some nuance among the different browsers huh.
I'm new in using
jest
andplaywright
but using it is really a breeze. I don't have anymore detailed explanation but what i wrote in the title. What does this message mean?Here's what i encounter:
This only throws on my test cases when the browser i use is firefox. may test passes on both chrome and webkit.
Thanks in advance!
The text was updated successfully, but these errors were encountered: