Dataloom Docs

Mavion SEO Insights errors

Every error code the Mavion SEO Insights returns — sync and batch — with retryability and what to do about each.

This page lists the error codes specific to the Mavion SEO Insights. The platform-wide contract — gateway rejections (401, 402, 429), and general retry guidance — is the same for every Dataloom API and is documented in errors.

The API uses two error envelopes:

Single-URL endpoint — the Website Insights-style envelope, with the request context stamped in:

{
  "status": "error",
  "error": {
    "code": "INVALID_DOMAIN",
    "message": "The provided domain string cannot be parsed into a valid fully qualified domain name.",
    "target": "url",
    "rejected_value": "reddit .com",
    "timestamp": "2026-10-27T12:00:00Z"
  }
}
FieldDescription
codeStable identifier — branch on this, never on message text.
messageHuman-readable reason for this specific failure.
targetWhich input failed — always "url" on this API.
rejected_valueThe input as received (whitespace included).
timestampUTC when the error was produced, YYYY-MM-DDTHH:MM:SSZ.

Batch endpoints — return a bare body with a retryable flag:

{
  "error": {
    "code": "BATCH_NOT_FOUND",
    "message": "No batch found with id batch_9f2c...",
    "retryable": false
  }
}

retryable: true means retrying the same request later may succeed (transient upstream failure); retryable: false means the request itself is bad and will fail again unchanged.

Single-URL endpoint

StatusCodeMeaningWhat to do
400MISSING_PARAMETERThe url query parameter is absent or empty.Add ?url=domain.
400INVALID_DOMAINNot a parseable domain/URL, over 2,048 characters — or the domain has no data in the index.Check spelling and TLD; treat as "no backlink data" when the domain is real.
502RELAY_SERVICE_ERRORThe egress-relay path failed transiently.Retry; back off if it repeats.
503CONNECTION_ERRORCould not connect to the upstream service.Retry; the failure may be transient.
504TIMEOUT_ERRORThe upstream fetch timed out.Retry with a longer client timeout.
500INTERNAL_SERVER_ERRORUnexpected failure during the fetch.Retry; the failure may be transient.

4xx rejections mean the input itself is bad — no retry helps until the request is fixed. The 5xx rows are transient: retrying the same request is safe.

Batch endpoints

Returned by the /analysis endpoints:

HTTPCodeMeaningWhat to do
400BATCH_TOO_LARGEMore than 10,000 items in urls.Split the submission.
400INVALID_REQUESTMalformed body or an unknown dataset value (the message names the offending field).Fix the field the message points at.
400INVALID_CALLBACK_URLThe callback_url is not a plain HTTPS URL or targets a private/loopback address — see webhooks.Send a public HTTPS URL.
404BATCH_NOT_FOUNDUnknown batch id.Check the id you stored from the submit response.
409IDEMPOTENCY_CONFLICTAn Idempotency-Key was reused with a different request body.Use a fresh key for the new body.
409BATCH_NOT_FINISHED/download called while the batch is still running.Poll /status first, or read partial pages from /results.
410BATCH_EXPIREDThe batch passed its expires_at (7 days after completion).The results are gone — resubmit if you still need them.

Item-level errors (batch result rows)

Inside a batch, a failed item never fails the batch — it becomes a result row with error set and data: null:

{
  "url": "not-a-domain",
  "index": 2,
  "duplicate_indexes": [],
  "attempts": 0,
  "data": null,
  "error": {
    "code": "INVALID_DOMAIN",
    "message": "The submitted item is not a valid domain or URL.",
    "retryable": false
  }
}
CodeRetryableMeaning
INVALID_DOMAINnoNot a valid domain — or real but absent from the index. Present at submit time as an immediate row; costs nothing.
TIMEOUT_ERRORyesThe fetch timed out transiently.
CONNECTION_ERRORyesCould not connect to the upstream service.
RELAY_SERVICE_ERRORyesThe egress-relay path failed transiently.
INTERNAL_SERVER_ERRORyesUnexpected upstream failure.

Rows written by batches submitted before 2026-10-27 may carry INVALID_URL instead of INVALID_DOMAIN — treat them identically.

How to handle failures per batch:

  • The batch's own status tells you which case you are in: completed (no failures), partial (some), or failed (all).
  • For retryable: true rows, collect their url values and resubmit them as a new batch later — old batches are immutable.
  • retryable: false rows are final; fix or drop those items.

HTTP status summary

StatusWhen
200Success — single-URL lookup, or a batch call where wait caught the finish.
202Batch accepted — not finished yet.
400Validation failure (see tables above).
404Unknown batch id.
409Idempotency conflict, or download before the batch finished.
410The batch expired.
500 / 502 / 503 / 504Upstream fetch failures on the single-URL endpoint — retry.
401 / 402 / 429Gateway-level — see errors.

On this page