(Created on )

Puppeteer: Browser should be launched with either pipe or debugging port - not both.

Both a debugging port and pipe transport are configured.


Both a debugging port and pipe transport are configured.

Error message

Browser should be launched with either pipe or debugging port - not both.

How this error happens

Pipe transport and a debugging port are alternative ways to connect. Selecting both makes the launch options contradictory.

The snippets use the imported puppeteer instance.

await puppeteer.launch({
    pipe: true,
    debuggingPort: 9222,
});

How to fix

Choose one transport. For a pipe connection, omit the debugging port.

const browser = await puppeteer.launch({
    pipe: true,
});

Things to keep in mind

Do not expose a debugging port publicly. Close the launched browser after the task.

All Puppeteer errors

Keep Reading

Puppeteer Guides

All Guides →