# X_SCRAPE_LAUNCH_ARGS_INVALID

## Means

the launch options carry arguments this driver cannot hand the browser

## Typical cause

**terminal.** Refused before anything is launched: `localBrowser({ options: { args } })` is not an array of strings, or it sets a proxy switch (`--proxy-server`, `--proxy-bypass-list`, `--proxy-pac-url`, `--proxy-auto-detect`, `--no-proxy-server`, either prefix, any case). The exit is the driver's `proxy` or the run's `egress`, appended after the caller's args; a second one in the args would let the browser leave by a route the session does not report. The fix lists every `localBrowser(` call and proxy switch; the cause names the edit — delete the switch and pass the exit as `localBrowser({ proxy })` or `scrape({ egress })`, or pass `args` as a list of strings

## Fix

`grep -rnE --include='*.ts' -e 'localBrowser\(' -e '--(no-)?proxy-' .`

[Scraping](/error-codes#scraping)
