Errors, idempotency and recovery
Diagnose invalid identity and denied context, recover a lost request ID, and handle a timeout without duplicating a generation.
Before sending a request, save its idempotency key with the endpoint, caller and the request it identifies. Use a new key for a new generation. If the connection drops, keep the original key and look up that request. Sending the prompt again is not a status check.
Decide what to do next
Section titled “Decide what to do next”| What you see | What to do |
|---|---|
401 / invalid_identity |
Obtain a fresh access token from the correct environment and client. Check that you sent an access token, not a client secret or ID token. This error does not establish the outcome of an earlier request. |
403 / execution_space_access_denied |
Check the selected space and caller. For endpoint credentials, check the endpoint’s Context tab. For Applications, check endpoint access, endpoint-shared spaces and the Application’s space grants. |
404 for a space or request |
Check the organization, endpoint, space ID and caller. A resource outside the caller’s permission scope may look absent. |
409 conflict |
Check the original request, its key and any version you supplied. For a configuration edit, reload the resource before changing it so you don’t overwrite a newer version. |
422 invalid input or idempotency_key_required |
Check for exactly one key, the model ID, content type and supported fields. An explicit context selection cannot be combined with smol_context_mode: "none". |
| Timeout, disconnect, 5xx or incomplete stream | Look up the original request. Don’t generate a replacement key or resend automatically. |
Error responses normally have the form {"error":{"code":"…"}}. Log the code and available request ID; never log credentials or private prompt content to diagnose a failure.
If you have the request ID
Section titled “If you have the request ID”Open Inference → endpoint → Activity and find the Smol request ID. For a backend lookup, send an authenticated GET to /v2/organizations/{organization_id}/endpoints/{endpoint_id}/requests/{request_id}. This is available on the inference origin and the platform API. It returns metadata, not the generated answer.
If the response headers never arrived
Section titled “If the response headers never arrived”Use the platform API origin, the original SMOL_REQUEST_KEY and the caller’s workload UUID (not the OAuth client ID). The operation is a POST because the key is in the JSON body; it is a lookup and does not dispatch inference. Set SMOL_API_URL, SMOL_ORGANIZATION_ID, SMOL_ENDPOINT_ID and SMOL_WORKLOAD_ID from your integration.
python3 -c 'import json,os,sys; json.dump({"workload_id":os.environ["SMOL_WORKLOAD_ID"],"idempotency_key":os.environ["SMOL_REQUEST_KEY"]},sys.stdout)' | curl --silent --show-error --fail-with-body --proto '=https' --max-time 20 \ --header "Authorization: Bearer $SMOL_ACCESS_TOKEN" \ --header 'Content-Type: application/json' \ --data-binary @- \ "$SMOL_API_URL/v2/organizations/$SMOL_ORGANIZATION_ID/endpoints/$SMOL_ENDPOINT_ID/requests/lookup"Check the returned request_id, status and any recorded provider or routing details. If usage is missing, the cost is unknown, not zero. If the lookup finds nothing immediately after a disconnect, Smol may still have accepted the request. Check Activity before deciding whether to start another generation. You can also use Activity if you don’t have the workload UUID.