Errors

Markdown

Every refusal carries a stable code: act on it, never on the message text, which is written for people and may change. The HTTP status says the class, the code says what happened. Each operation page lists the codes it can return.

Over REST

A JSON body with error.code and error.message; retryAfterMs on 429, details on not_publishable.

HTTP/1.1 409 Conflict
Content-Type: application/json

{
  "error": {
    "code": "not_publishable",
    "message": "Not ready to publish: 1 spot has no photo (Tunnel View)",
    "details": {
      "blocking": [
        { "code": "missing_photos", "message": "1 spot has no photo (Tunnel View)" }
      ]
    }
  }
}

Over MCP

A tool result with isError: true and the code at the start of the text. A refused call is never a JSON-RPC protocol error.

{
  "jsonrpc": "2.0",
  "id": 7,
  "result": {
    "content": [
      { "type": "text", "text": "Error rate_limited: Too many attempts. Try again later." }
    ],
    "isError": true
  }
}

400

  • reel_url_invalidNot a reel linkREST and MCPSCN-400

    A reels value contains a non-HTTPS URL, unsupported host, profile, story or other unsupported link.

    What to do: Send an Instagram reel, post or TV link, a TikTok video link or a supported TikTok short link.

  • reel_value_invalidInvalid reels valueREST and MCPSCN-400

    A reels property is not an array or an item has no URL.

    What to do: Send an array of URL strings or objects with url.

  • reel_duplicateReel already addedREST and MCPSCN-400

    Two links in one spot property have the same canonical URL.

    What to do: Keep each reel once in the property.

  • reels_fullToo many reelsREST and MCPSCN-400

    One spot property contains more than 24 reels.

    What to do: Send up to 24 reels per property.

  • invalid_argumentA field has the wrong shapeREST and MCPSCN-400

    A required field is missing, a field is unknown, or a value does not match its type (the Convex validator's path and value are in the message).

    What to do: Fix the field named in the message. The operation's parameters list every accepted field with its type.

  • invalid_requestThe input was refusedREST and MCPSCN-400

    A writer refused a value: a map link on a host that is not allowed, a title that is too long, a date that does not exist, too many items in a list. The message is the writer's own sentence.

    What to do: Change the value the message names and send the request again. Do not retry unchanged.

  • invalid_jsonThe body is not a JSON objectRESTSCN-400

    A POST, PUT or PATCH body is not valid JSON, or is JSON but not an object.

    What to do: Send a JSON object with Content-Type: application/json.

  • unsupported_imageNot a JPEG, PNG or WebPRESTSCN-400

    An upload's bytes are not a JPEG, PNG or WebP file, or their dimensions cannot be read. The bytes are checked, not the Content-Type header.

    What to do: Convert the photo to JPEG or WebP and upload it again.

  • image_too_largeThe photo is too largeRESTSCN-400

    An upload is more than 6,000 px on a side.

    What to do: Resize to 2,048 px on the long side and compress before uploading.

  • photo_source_failedWikimedia Commons did not answerREST and MCPSCN-400

    Wikimedia Commons was busy or silent during a search or an add.

    What to do: Try again in a few minutes. Nothing was added.

  • search_unavailablePlace search is not answeringREST and MCPSCN-400

    search_places, places_near or search_helpers while the OpenStreetMap search service is down or slow.

    What to do: Try again later, or use the creator's coordinates or map link.

  • not_a_listNot a Google Maps listREST and MCPSCN-400

    read_map_list with a link that is not a shared Google Maps list.

    What to do: Ask the creator for the list's share link: in Google Maps, Saved, the list, Share.

  • list_unreadableGoogle did not share the listREST and MCPSCN-400

    read_map_list on a list that is private, deleted, or that Google did not answer for.

    What to do: Ask the creator to share the list with anyone who has the link, or to send a CSV from Google Takeout.

  • unsupportedThat link holds no route Sceniq Earth can readREST and MCPSCN-400

    read_track_link with a link from a planner app (Komoot, Strava, AllTrails) or a page without a drawn line. The message says how to export a GPX file from that app.

    What to do: Ask the creator for the GPX or KML file and send its line as update_hike track.

  • not_publicThe map is not shared publiclyREST and MCPSCN-400

    read_track_link on a Google My Maps map that only its owner can open.

    What to do: Ask the creator to share the map with anyone who has the link, then try again.

  • too_largeThe route file is too largeREST and MCPSCN-400

    read_track_link on a drawing or map file over 4 MB.

    What to do: Ask the creator for the hike's own GPX file.

  • unreadableThe link could not be readREST and MCPSCN-400

    read_track_link when the drawing or map did not answer.

    What to do: Try again, or ask the creator for the file.

  • unknown_toolNo such toolMCPSCN-400

    tools/call names a tool the server does not have.

    What to do: Call tools/list and use a listed name.

401

  • unauthenticatedNo API keyREST and MCPSCN-401

    The request carries no key. Send it as Authorization: Bearer sk_sceniq_... (or X-Api-Key).

    What to do: Add the header. MCP clients take it in their server config.

  • invalid_api_keyThe key does not workREST and MCPSCN-401

    The key is unknown, revoked or expired.

    What to do: Ask the creator for a new key (studio, Settings, API keys). Keys are shown once, when they are created.

403

  • api_scope_requiredThe key lacks a scopeREST and MCPSCN-403

    A read-only key called a write operation, or a key without the publish option called publish_changes.

    What to do: Ask the creator for a key with the scope the message names. Never work around it.

  • api_key_not_allowedOnly the creator can do thisREST and MCPSCN-403

    The action is interactive only: deleting a guide, removing a language, money and tax settings, payouts, the creator agreement, API keys, the account. A key never reaches it.

    What to do: Hand the step to the creator with its studio link.

  • forbiddenThe key has no creatorREST and MCPSCN-403

    The key belongs to a creator account that is no longer active.

    What to do: Stop and tell the creator; the account needs attention in the studio.

404

  • not_foundNot foundREST and MCPSCN-404

    The id does not exist or belongs to another creator. The two answers are identical on purpose, so ids never reveal what exists.

    What to do: Read the id again from a list operation (list_guides, list_spots, ...).

  • unknown_routeNo such endpointRESTSCN-400

    No operation answers at this method and path.

    What to do: Check the path against the reference or the OpenAPI document.

405

  • method_not_allowedWrong methodREST and MCPSCN-400

    The path exists for other methods (the Allow header lists them), or a GET or DELETE reached the MCP endpoint.

    What to do: Use a method from the Allow header. The MCP endpoint only takes POST.

409

  • stale_editorIt changed since you read itREST and MCPSCN-409

    The row changed after the expectedUpdatedAt you sent (update_chapter, set_chapter_pages, update_itinerary, set_itinerary_days, save_sales_page_draft).

    What to do: Read the row again, apply your change to the new version, and send it with the new updatedAt.

  • guide_soldThe guide has buyersREST and MCPSCN-409

    delete_spot on a guide someone bought. Buyers keep what they paid for.

    What to do: Archive the spot instead: update_spot with archived true.

  • conflictThe row's state refuses itREST and MCPSCN-409

    The request clashes with the row's current state. The message says what to change.

    What to do: Read the row again and follow the message.

  • busyThe guide is busyREST and MCPSCN-409

    discard_guide_changes while the guide's save or a publish is still building; backup_guide when the guide kept changing while it was read.

    What to do: Wait, then try again: a discard once get_publish_status shows savePendingSince and pendingSince null again (usually seconds), a backup once the edits have stopped.

  • nothing_savedThe guide has no save yetREST and MCPSCN-409

    discard_guide_changes on a guide that was never saved, so there is nothing to go back to.

    What to do: Nothing to discard. save_guide_changes makes the first save.

  • not_publishableA publish gate is openREST and MCPSCN-409

    publish_changes or publish_guide while a gate is open: the agreement, no live spot, a live spot without a pin or a photo, no price. details.blocking lists each gate as { code, message }.

    What to do: Fix each blocking item (get_publish_status lists them), then publish only if the creator asks.

  • not_liveThe guide is not on saleREST and MCPSCN-409

    publish_changes on a draft or archived guide, which has no live version to update.

    What to do: Putting it on sale is publish_guide, only when the creator asks; otherwise hand the creator the reviewUrl.

  • no_changesNothing to publishREST and MCPSCN-409

    publish_changes when buyers already see every change.

    What to do: Nothing to do. get_publish_status shows the live version.

  • agreement_outdatedThe agreement needs acceptingREST and MCPSCN-409

    A price change or a publish by a creator who never accepted the creator agreement. A newer agreement version never causes it.

    What to do: Ask the creator to accept it in the studio, then try again.

413

  • payload_too_largeThe request is too largeREST and MCPSCN-400

    A JSON body over 2 MB, an image over 6 MB, a batch upload over 19 MB, or an MCP message over 2 MB.

    What to do: Split the request (upsert_spots takes 25 spots per call) or compress the photo.

429

  • rate_limitedToo many requestsREST and MCPSCN-429

    Over a limit: requests per key per minute, per creator per hour, uploads per key per minute, or check_links per guide per hour.

    What to do: Wait for Retry-After (seconds) or retryAfterMs, then continue. Do not retry in a tight loop.

500

  • internal_errorSomething failed on our sideREST and MCPSCN-400

    An unexpected failure. The message is hidden on purpose.

    What to do: Try once more after a short wait. If it repeats, tell the creator and write to creators@sceniq.earth with the time and the operation.

MCP protocol errors

A malformed message is answered as JSON-RPC: -32700 (not JSON), -32600 (not a JSON-RPC 2.0 message), -32601 (a method the server does not offer: it offers initialize, ping, tools/list and tools/call), -32602 (tools/call without a known tool name). A missing or invalid key answers HTTP 401 with -32000 and the error code in error.data.code.

The SCN- reference beside each code is what the Sceniq Earth apps show people for the same class of error; quote it when writing to creators@sceniq.earth.