Request is already handled!
How to fix the Puppeteer error: Request is already handled!
Error
Request is already handled!
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 is already handled!")) {
// Apply the fix above, then retry or fail with a clearer message.
}
throw error;
}