> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Playwright launch-server exit status

> How a Loadwise reliability finding led to a reproduced Playwright CLI bug.

Loadwise flagged the startup promise in Playwright's `launch-server` action. The action started the server without routing rejections to the existing CLI error handler. Ibrahim Hafez reproduced the result on Windows with Node.js 26.13.1 and reported it upstream. [Original report](https://github.com/microsoft/playwright/issues/44433) · [Pinned command source](https://github.com/microsoft/playwright/blob/a804c193562095b0da20e5d4679fa87e4c8e5563/packages/playwright-core/src/cli/program.ts#L198-L205)

## Reproduce the exit-status difference

In a new scratch directory without a `missing.json` file, install the release used in the reporter's minimal reproduction. The failure occurs before the browser starts. [Minimal reproduction](https://gist.github.com/IbrahimHafez1/05286f51f4f27b3f20cdd864172fd83d)

```sh theme={null}
npm init -y
npm install --save-exact playwright-core@1.65.1

node --unhandled-rejections=warn ./node_modules/playwright-core/cli.js launch-server --browser chromium --config missing.json
echo "$?"

node --unhandled-rejections=throw ./node_modules/playwright-core/cli.js launch-server --browser chromium --config missing.json
echo "$?"
```

Use `$LASTEXITCODE` instead of `echo "$?"` if running the commands in PowerShell.

| Node rejection policy | Observed exit status | Server endpoint |
| - | - | - |
| `warn` | 0 | None |
| `throw` (default) | 1 | None |

A caller using the status to decide whether startup succeeded can receive a successful exit under `warn` even though it has no endpoint to connect to. Playwright's Windows automation independently reproduced the difference and tested a patch that sends the error through the CLI handler. The proposed change was still an open draft on December 3, 2026. Follow the upstream pull request for merge and release status. [Playwright's verification](https://github.com/microsoft/playwright/issues/44433#issuecomment-7287509861) · [Upstream pull request](https://github.com/microsoft/playwright/pull/44451)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.