Troubleshooting¶
Node not found¶
Starting the sidecar throws X::WWW::Playwright::NodeNotFound:
1 | |
The transport could not find node on PATH. Install Node 18 or newer, or point
PLAYWRIGHT_NODE at the binary:
1 | |
npm dependencies missing¶
Starting the sidecar throws X::WWW::Playwright::DependenciesMissing:
1 | |
The playwright npm package has not been installed next to the sidecar. Run
bin/www-playwright-setup, which runs npm install in the sidecar resources directory.
Browser not installed¶
launch throws X::WWW::Playwright::BrowserNotInstalled:
1 | |
The npm package is present but the Chromium binary is not. Run bin/www-playwright-setup,
which also runs npx playwright install chromium.
Sidecar crash¶
If the Node process dies mid-run, calls awaiting a response stay unresolved. Set
PLAYWRIGHT_DEBUG to stream the sidecar's stderr and see what it reported before
exiting:
1 | |
The captured lines are also available on the transport through
$sidecar.stderr-lines. See Configuration.