Configure Puppeteer for Proxidize
Puppeteer applies the proxy server when Chromium launches, then supplies username and password authentication through the page. Launch separate browser processes when workers require different proxy routes.
Keep the endpoint and credentials in environment variables. Use the exact HTTP or HTTPS scheme shown in the Proxidize dashboard.
Run the Integration
Install the pinned Puppeteer release and allow it to download its compatible browser unless the deployment supplies a supported browser explicitly.
Launch and authenticate Chromium
Set the server without credentials in the launch argument and authenticate before opening the IP-check page.
Control Sessions and Rotation
Keep browser state and one sticky proxy identity together. Close the browser before switching endpoints when different workers need distinct routes; changing the route midway can desynchronize cookies and network identity.
Use a sticky session when related requests must keep the same temporary network identity. Use rotation for independent requests, and rotate only at an intentional workflow boundary. Cookies, browser storage, and application state should change with the proxy identity rather than halfway through a stateful task.
Verify the Proxied Network Path
Run the IP-check example through the same client or browser context that will perform the permitted workload. A successful request from another terminal or library does not prove that this integration uses the same proxy route.
The repository example prints a redacted endpoint and the visible exit IP. It does not print the username or password. Confirm the intended US mobile or residential profile before using an approved target.
Troubleshoot Common Failures
- ERR_PROXY_CONNECTION_FAILED usually indicates an endpoint, port, reachability, or protocol problem.
- A 407 response indicates missing or rejected proxy authentication.
- Do not disable Chromium's sandbox on a normal host; use that exception only in an appropriately isolated container that cannot provide a sandbox.
Test in layers: first verify the endpoint and credentials, then the IP-check URL, and only then the intended destination. Keep TLS verification enabled and treat repeated timeouts separately from authentication failures.
Production Checklist
- Keep credentials in environment variables or a secrets manager.
- Match one sticky session to one stateful worker or browser context.
- Bound concurrency, retries, queue length, and request rate.
- Redact proxy credentials from exceptions, traces, and logs.
- Verify the exit location and protocol before scaling.
- Follow applicable laws, third-party terms, and destination rules.