Ignore aborted navigations in ops policy sweep runtime accounting
This commit is contained in:
@@ -565,11 +565,16 @@ async function main() {
|
||||
return;
|
||||
}
|
||||
|
||||
const errorText = request.failure()?.errorText ?? 'unknown';
|
||||
if (errorText === 'net::ERR_ABORTED') {
|
||||
return;
|
||||
}
|
||||
|
||||
runtime.requestFailures.push({
|
||||
page: page.url(),
|
||||
method: request.method(),
|
||||
url,
|
||||
error: request.failure()?.errorText ?? 'unknown',
|
||||
error: errorText,
|
||||
});
|
||||
});
|
||||
page.on('response', (response) => {
|
||||
|
||||
Reference in New Issue
Block a user