Request Interception is not enabled!
How to fix the Puppeteer error: Request Interception is not enabled!
Error
Request Interception is not enabled!
What it means
Puppeteer raised this from its network and request interception code. In practice, it usually means your script reached a browser, page, frame, element, or option state that the API cannot use safely.
How to fix it
- Call
page.setRequestInterception(true)before handling requests. - Ensure each intercepted request is resolved exactly once with
continue,respond, orabort. - Return immediately after handling a request to avoid fall-through in multiple listeners.
Minimal guard
try {
// Run the Puppeteer operation that triggers this error.
} catch (error) {
if (error instanceof Error && error.message.includes("Request Interception is not enabled!")) {
// Apply the fix above, then retry or fail with a clearer message.
}
throw error;
}