GeoCzech logo GeoCzech Docs

GeoCzech API

Errors

What went wrong and how to fix it — HTTP status codes, error codes and the most common causes.

Two kinds of errors

  1. The request was rejected — something is wrong with the request itself (missing API key, invalid JSON, not enough credits). You get an HTTP error status (4xx) right away and no task is created. Nothing is charged.
  2. The task failed — the request was fine, but the tool could not process the data (unreadable file, unknown format, missing coordinate system …). The task ends with "status": "FAILED", an error message and a stable error_code. Failed tasks are free.

Rejected requests answer with a JSON body that has a human-readable detail and, where available, a machine-readable code:

A rejected request
401 Unauthorized
{
  "detail": "API key is required",
  "code": "missing_api_key"
}

HTTP status codes

HTTP Meaning What to do
200 OK. With wait=true the task is finished (or still PENDING after wait_timeout). Read status.
400 Bad request — e.g. Invalid JSON in params field, or a file_urls / callback_url address that is not a public http(s) address (file_url_not_allowed, callback_url_not_allowed). Check the JSON in params (quotes, commas, brackets) and use public addresses.
401 Missing, wrong, expired or rotated API key. See Authentication.
402 Not enough credits, or the key's monthly limit was reached. Top up or raise the limit — see Credits.
403 The key is not allowed to do this (IP, domain, tool), or the plan has no API access. Check the key's restrictions in the Console.
404 Unknown tool (Tool … not found) or task (Task not found). Check the spelling; tasks of other accounts are reported as not found.
413 A file from file_urls is larger than the API accepts (file_url_too_large). Split the data, or convert it in the web application.
422 A form field has a wrong type, or an input file could not be fetched. Check field names and values; make sure the file_urls link is public.
429 Too many requests with this key in a short time (rate_limited). Wait for the number of seconds in the Retry-After header and retry; check status less often or use a callback_url.
500 With wait=true: the task failed. Read detail.error_code and detail.error — see below.
503 Temporarily unavailable. Wait a few seconds and retry.

Failed tasks

A failed task carries:

  • error — a sentence describing the problem,
  • error_code — a stable code you can rely on in your code (see the tables below),
  • error_details — extra details, often the full tool report,
  • output_files — usually still contains result.json with the full report.

With wait=true the same information comes inside detail of an HTTP 500 response.

A failed task (status, or detail of HTTP 500 with wait=true)
curl -X POST "https://api.geoczech.dev/v2/tool/converter" \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file_urls=https://cdn.geoczech.dev/docs-samples/v1/st-helena-places-utm.zip" \
  --form-string 'params={"output": {"format": "nope"}}' \
  -F "wait=true"
500 — task failed
{
  "detail": {
    "message": "Processing failed: Unknown output format 'nope' — use a format key from the catalogue (see method=capabilities).",
    "task_id": "6f30b880-1e4c-49c3-bbf1-03031f0b118d",
    "status": "FAILED",
    "error": "Unknown output format 'nope' — use a format key from the catalogue (see method=capabilities).",
    "error_code": "unknown_format",
    "error_details": {"requested": "nope", "reportFile": "result.json"},
    "output_files": ["https://…/output/result.json?…"]
  }
}

Common task error codes

error_code Meaning Typical fix
no_datasets_found No geodata was found in the inputs. Check the file is a supported format; send all parts of a Shapefile (ZIP).
inspection_failed A file could not be read. The file is damaged, password-protected or not a geodata file.
unknown_format The requested format does not exist. Use a format key from the Converter format list.
format_not_writable The format can be read but not written. Choose another output format.
unsupported_conversion This input cannot be converted to this output. Try an intermediate format, or another output.
raster_not_supported_yet Vector → raster (or raster → vector) was requested. Raster ↔ raster and vector ↔ vector are supported.
missing_source_crs The data has no coordinate system, so it cannot be reprojected. Tell the Converter the CRS with source.source_crs.
crs_fixed_format The output format has a fixed CRS (e.g. KML, GeoJSON, GPX = WGS 84). Remove target_crs or choose another format.
unknown_layer A layer named in layers does not exist. Check layer names with Geodata analyze.
invalid_field_selection None of the requested fields exist. Check attribute names (case matters).
invalid_job_spec params contain an unknown key or a wrong value. Compare with the parameter reference; the message names the problem.
step_timeout A processing step took too long. Send estimated_complexity=heavy, or split the data.
UNPACK_FAILED An archive could not be unpacked (damaged, password, too big). Re-create the archive (plain ZIP works best).

Converter error codes appear in messages in square brackets, for example [inspection_failed] Cannot read dataset ….

Troubleshooting tips

  • Start small. Try the same request with a sample file — if it works, the problem is in your data, not in your code.
  • Analyze first. Geodata analyze tells you the layers, fields and coordinate system of a file — exactly the names the other tools expect.
  • JSON in params must use double quotes ("format", not 'format').
  • file_urls must be public. Open the link in a private browser window — if it asks you to log in, the API cannot download it either.
  • Check warnings even on success: they tell you when something was adjusted automatically (renamed fields, reprojected coordinates …).

Last updated 2026-11-17