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
- 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.
- 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", anerrormessage and a stableerror_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:
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 containsresult.jsonwith the full report.
With wait=true the same information comes inside detail of an HTTP 500 response.
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"
import json
import requests
API_KEY = "YOUR_API_KEY"
response = requests.post(
"https://api.geoczech.dev/v2/tool/converter",
headers={"X-API-Key": API_KEY},
files={
"file_urls": (None, "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places-utm.zip"),
"params": (None, json.dumps({
"output": {"format": "nope"},
})),
"wait": (None, "true"),
},
timeout=120,
)
response.raise_for_status()
print(response.json())
const API_KEY = "YOUR_API_KEY";
const form = new FormData();
form.append("file_urls", "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places-utm.zip");
form.append("params", JSON.stringify({
"output": {"format": "nope"}
}));
form.append("wait", "true");
const response = await fetch("https://api.geoczech.dev/v2/tool/converter", {
method: "POST",
headers: { "X-API-Key": API_KEY },
body: form,
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.json());
<?php
$apiKey = "YOUR_API_KEY";
$curl = curl_init("https://api.geoczech.dev/v2/tool/converter");
curl_setopt_array($curl, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ["X-API-Key: $apiKey"],
CURLOPT_POSTFIELDS => [
"file_urls" => "https://cdn.geoczech.dev/docs-samples/v1/st-helena-places-utm.zip",
"params" => json_encode([
"output" => ["format" => "nope"],
]),
"wait" => "true",
],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
print_r(json_decode($response, true));
using var client = new HttpClient { Timeout = TimeSpan.FromSeconds(120) };
client.DefaultRequestHeaders.Add("X-API-Key", "YOUR_API_KEY");
using var form = new MultipartFormDataContent();
form.Add(new StringContent("https://cdn.geoczech.dev/docs-samples/v1/st-helena-places-utm.zip"), "file_urls");
form.Add(new StringContent("""{"output": {"format": "nope"}}"""), "params");
form.Add(new StringContent("true"), "wait");
var response = await client.PostAsync("https://api.geoczech.dev/v2/tool/converter", form);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
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
paramsmust use double quotes ("format", not'format'). file_urlsmust be public. Open the link in a private browser window — if it asks you to log in, the API cannot download it either.- Check
warningseven on success: they tell you when something was adjusted automatically (renamed fields, reprojected coordinates …).
Last updated 2026-11-17