Open
Description
302 redirect not have response body,throw Error "Can only get response body on requests captured after headers received"
Maybe you need a ---> try catch
try {
const responseCdp = (await client.send('Fetch.getResponseBody', {
requestId,
}));
const response = {
body: responseCdp.base64Encoded ? atob_1.default(responseCdp.body) : responseCdp.body,
headers: event.responseHeaders,
errorReason: event.responseErrorReason,
statusCode: event.responseStatusCode,
};
newResponse = await this.eventHandlers.onResponseReceived({ response, request });
} catch (e) {
console.log(e);
newResponse = await this.eventHandlers.onResponseReceived({ test: 'test' });
}
Metadata
Metadata
Assignees
Labels
No labels