Response
cdpUrl is set and status is active. It gives up after 20 seconds on most machines, three minutes on the newest, with a 504. Set a client timeout of at least three minutes on this call; everything else answers within seconds.
The browser opens on about:blank, or your url, with one context and one tab. If you get starting, poll GET /v1/browser/session until cdpUrl appears.
Session ids are opaque (32 hex characters today); don’t validate the format. cdpUrl is a credential: anyone holding it can drive the browser.
Options
Unknown fields are a
400 (window_size is not supported by this endpoint), as are out-of-range values (duration: Too small: expected number to be >=60, note: Too big: expected string to have <=256 characters) and options that contradict each other: a timezone or language not listed for the country (Unsupported timezone "Europe/Berlin" for country US.), a country that doesn’t match your proxy’s exit, a proxy that can’t be reached. The message names the field.
Errors
What to retry is on Errors.
Next
- Connect over CDP
- Lifecycle: get, list, label and stop sessions
- Browser pools: warm browsers with these options preset