Closed
Description
openedon Jan 23, 2024
System info
- Playwright Version: v1.41.1
- Operating System: Ubuntu 20
- Browser: Chrome
- Other info: Using
mcr.microsoft.com/playwright:v1.41.1-focal
Source code
await page.route('**/*', route => {
const url = new URL(route.request().url());
return domainsToBlock.has(url.hostname)
? route.abort()
: route.continue()
// .catch(e => {
// console.error('Error while continuing route', url, e);
// });
});
Steps
Unfortunately, I don't have a great reproduction here -- we run this blocking interception all our tests. We're seeing enough failures as below though that it is pretty consistently resulting in our test suite failing.
Expected
Historically have never run into issues with this blocking, it aborts requests for domains we've blocked and otherwise just passes all other requests through without issue.
Actual
However, since updating to 1.41.1 (from 1.40.1) we're seeing rather random route.continue: Protocol error (Fetch.continueRequest): Invalid InterceptionId.
being thrown for what appear to be legitimate requests that shouldn't be failing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment