Contents

Errors and troubleshooting

Most Local API failures are reported in the response body, not in the HTTP status. Read code and msg first, then check the server, the key and the profile state.

Updated: 4 min read

The manager reference covers retired releases. The local manager has no published installer. Profile manager status

On this page

Read the response

An API-level failure returns HTTP 200 with code: -1, an empty data object and a message. The message is the most specific part of the response; it can name a missing field, a profile state or a server limitation. Do not infer the cause from the HTTP status alone.

Typical error
{
  "code": -1,
  "data": {},
  "msg": "<reason>"
}

If the response is not JSON, the request did not reach the API server. Check the address, the port and whether the manager is running.

The server is unreachable

  • The manager is not running. Start Ombra.
  • Local API is disabled in Settings → Integrations.
  • The port in the URL differs from the port in settings. The default is 45678.
  • Another program uses the port. Ombra reports the conflict; choose a free port and restart the server.

A connection refused error means nothing is listening at that address. A timeout can mean a firewall or a wrong host; use 127.0.0.1, not a network address.

API key and browser origins

When the API key is enabled, a missing or wrong Authorization header returns code: -1. Use Authorization: Bearer <key>; do not put the key in a query string.

Requests with Origin, or with Sec-Fetch-Site set to cross-site or same-site, are rejected even if the Host is allowed. This blocks ordinary page fetch calls. A simple GET may carry neither header, so enable the API key if pages must not reach the API. Run the request from a local script or a command-line client, not from browser JavaScript.

The Host must be one of 127.0.0.1, localhost, [::1], local.adspower.net or local.adspower.com. A different Host is rejected before the method runs.

404 and 405

HTTP 404 means the path is unknown. HTTP 405 means the path exists but does not accept that method. Both bodies use the same envelope; read msg to confirm which case you hit.

Routing errors
HTTP statusWhen it appearsWhat to do
404The path is misspelled or belongs to another versionCheck the prefix, method name and trailing path.
405The path exists but the method is not supportedUse GET or POST as documented.
200The request reached a methodRead code in the JSON body.

Profile and browser errors

Common profile errors
SymptomWhat to check
No new browser window appearsThe profile may already be running; call active and use its CDP endpoint.
The profile is busy or the browser cannot startCheck whether the profile is busy and which browser build is selected.
The browser is not installedDownload it in Settings → Browser.
The profile was not foundTake the identifier from the list response: profile_id in v2, user_id in v1.

A start call can fail after the API accepts it if the browser cannot start. The message then describes the browser or the profile, not the HTTP request.

Diagnostic checklist

  1. Check /status with curl and confirm code: 0.
  2. Check the port and the Host header.
  3. Add the API key if it is enabled.
  4. Call list and confirm the identifier: profile_id in v2, user_id in v1.
  5. Call active before start and stop the profile before a retry.
  6. Read msg and the manager log for the browser error.

If the error persists, include the request path, the response envelope and the profile state in a support request. Do not include the API key, cookies or passwords.

Setup is described in Enable Local API and API key; request details are in Requests and responses.

Was this page helpful?

Tell us what to improve

Last updated:

OMBRA / APPLICATION INTERFACE

Application screenshot

Ombra interface with sample data. Select 1:1 to view the screenshot at its original size.