API errors & troubleshooting
Local API requires Pro membership and a running client. Use the port and api-key from the API screen.
Definition: Apifox. Troubleshooting below is supplemented from the current client; exact error strings can vary by version.
Response shape
Success commonly uses { "success": true, "data": {} }.
Failure: { "success": false, "error": "..." }
data can be an object, array, boolean, or absent. Some endpoints return only success, or include top-level message, total, majors, or crxPath.
Running-state exception
Apifox defines isBrowserRunning as a raw boolean, while current clients return a success/data wrapper. See Check running state for compatible parsing. MCP uses its own protocol messages, not this REST format.
Check both HTTP status and the body. HTTP 200 alone is not proof of success. Check success for object responses and apply the boolean compatibility rule above for running state. Non-2xx responses are failures even if the body cannot be parsed as JSON.
HTTP status codes
| Code | Meaning | Examples |
|---|---|---|
200 | Handled | OK or success: false in body |
400 | Bad request | Missing id, Invalid id format |
401 | Unauthorized | Bad/missing api-key; cloud sync not signed in |
403 | Forbidden | Cloud sync without Pro |
404 | Not found | Unknown profile/group id |
409 | State conflict | Monitors missing or windows not ready |
429 | Rate limited | Write queue full |
500 | Server error | Usually error.message from client |
501 | Unsupported | Window arrangement outside Windows |
Auth & permissions
| Error | HTTP | Fix |
|---|---|---|
Unauthorized: Invalid API key | 401 | Copy fresh key from API |
VIP capability lease is missing or expired | 403 | Verify Pro, sign-in, and connectivity; preserve client logs rather than retrying endlessly |
| Connection refused | — | Start client; verify port |
请先登录后再进行云同步 | 401 | Sign in to the client |
仅限会员使用云同步功能 | 403 | Subscribe to Pro |
Validation (400)
| Error | Meaning |
|---|---|
Missing required parameter: id | Body missing id |
Missing required parameter: id, name, or remark. | launchBrowser needs one identifier |
Missing required parameter: cookies | Cookie update |
Missing or invalid parameter: accounts (must be an array) | Platform accounts API |
Invalid id format | id not a valid integer |
Not found (404)
| Pattern | Meaning |
|---|---|
browser(id: N) not found | Profile missing |
Browser with id N not found | Same (variant wording) |
group(id: N) not found | Group missing |
Browser data directory not found for id: N | Data dir deleted |
Browser list is empty or not found. | No profiles |
Launch / stop
| Error | Action |
|---|---|
browser(id: N) is running | Current clients may return this as a successful message; check success and data.debuggingPort |
No browser found with … | Fix id/name/remark via getBrowserList |
Multiple browsers found with … | Use unique id |
No browser data found for worker ID: N | Restore backup or recreate |
Failed to parse proxy from API response | Fix proxy extract URL format |
Failed to fetch proxy from API: … | Network/auth on proxy API |
Browser process closed before DevTools port was detected. | Kernel/proxy/AV issue |
Failed to detect DevTools port for worker N… | Close conflicting Chromium |
Worker authentication failed for worker N: … | Preserve the full error, core version, and client logs; check running state before retrying |
Rate limiting
| Error | HTTP |
|---|---|
Too many concurrent write requests, please retry later | 429 |
See Arrange running windows for error codes, skipped items, and Windows support. Close profiles before calling cookie endpoints; getCookie.data is an array. Fingerprint randomization accepts only id, not custom fingerprint fields.
INFO
Exact strings follow the installed client—see Apifox after upgrades.
Checklist
- Pro active, client running
api-keyheader- Correct port
- Check HTTP status and body; handle boolean responses as documented
- Connect CDP using
data.debuggingPort: Playwright guide
Related
Additional current-client states
- Launch may return 409 during cache-directory migration; wait for migration to finish.
- A full write queue returns 429; limit concurrency and use backoff rather than endless retries.
- An unavailable core returns 400 and may include local core paths; redact them before sharing.
- Redact account, Cookie, full-profile and log data as described in security and access logs.
Per-endpoint success responses and handler statuses
The table reflects explicit branches in the current client source. Business requests can first receive 401 or 403 from shared authentication. JSON parsing failures or oversized bodies can return 400 or 413 before a handler, not necessarily in JSON. Indirect errors are not exhaustively listed.
| Method and endpoint | Success response fields | Other explicit handler statuses |
|---|---|---|
POST /api/clearCache | success, message | 400, 500 |
GET /api/getBrowserList | success, data[], total | 500 |
POST /api/getBrowserList | success, data[], total | 500 |
GET /api/getBrowserRunningList | success, data[]: id/name/debuggingPort/webdriverPath | 500 |
GET /api/isBrowserRunning | success, data:boolean | 400, 404 |
GET /api/getBrowserFullParameters | success, data: array/object/possibly absent | 500 |
GET /api/getCoreVersions | success, data[], total, majors | 500 |
GET /api/getAvailableCoreVersions | success, data[], total, majors | 500 |
POST /api/addBrowser | success, data.id | 400, 429, 500 |
POST /api/updateBrowser | success | 400, 401, 403, 404, 429, 500 |
GET /api/getCookie | success, data[] / possibly absent | 400, 404, 500 |
POST /api/updateCookie | success | 400, 404, 500 |
POST /api/deleteBrowser | success | 400, 429, 500 |
POST /api/deleteBrowserData | success, message | 400, 500 |
GET /api/getGroupList | success, data[] | 500 |
POST /api/addGroup | success | 500 |
POST /api/updateGroup | success | 404, 500 |
POST /api/deleteGroup | success | 404, 500 |
POST /api/randomizeFingerprint | success, data.id, data.message | 400, 404, 429, 500 |
POST /api/launchBrowser | success, data.debuggingPort, data.webdriverPath? / message? | 400, 401, 403, 404, 409, 500 |
POST /api/arrangeWindows | success, data.arrangedCount/arrangedIds/skipped/monitor | 400, 403, 409, 500, 501 |
POST /api/stopBrowser | success, message? | 400, 404, 500 |
GET /api/getCrxList | success, data[] | 500 |
POST /api/addCrx | success | 500 |
POST /api/deleteCrx | success, crxPath | 500 |
GET /api/getAccountList | success, data[] | 400, 404, 500 |
POST /api/addAccount | success | 400, 500 |
POST /api/deleteAccount | success | 400, 500 |
POST /api/updateAccountList | success | 400, 500 |
MCP POST, GET and DELETE use JSON-RPC / Streamable HTTP responses rather than this REST table.



