Errors
Every error code returned by grad-server, what it means, and how to fix
it.
All errors use application/problem+json. Match programmatically on code (stable across releases); treat title and detail as human-readable text. Include request_id (also returned in the x-request-id header) when reporting an issue.
{
"type": "https://gradiated.com/problems/integration_in_use",
"title": "Conflict",
"status": 409,
"code": "integration_in_use",
"detail": "Integration 'langfuse' is used by sources src_3f9c0a1b2c3d4e5f60718293 (dataset support-prod); remove those first (or wait for the imports and runs to finish).",
"used_by": {
"count": 1,
"sources": [
{ "id": "src_3f9c0a1b2c3d4e5f60718293", "dataset": "support-prod" }
],
"imports": [],
"runs": []
},
"request_id": "req_6f1c3a0e-5d2b-4b8e-9f43-0a7d2c9e1b55"
}
All four SDKs raise typed errors carrying status, code, message, and request_id, and automatically retry 408, 429 (except queue_limit), 500, 502, 503, and 504 up to twice with the same Idempotency-Key.
CLI exit codes (--json writes {"ok": false, "error": {...}} to stderr):
2— invalid flags or usage3— authentication or permission error (401,403)4— not found (404)5— conflict or validation error (409,422)6— feature unavailable (501orcloud_training_unavailable)7— waited run, eval, or import ended unsuccessfully8— eval regression gate failed (eval_regressed)9— agent eval exceeded--max-error-rate(eval_error_rate)
200400401403404409410413422429500501502503
Requests and auth
cross_site_request403AUTH_MODE=noneonly: a browser request from another site, which would act as the platform admin.Fix Add the page's origin to
GRAD_CORS_ORIGINS, or run withAUTH_MODE=api_key.forbidden403The key lacks the scope this endpoint needs; the message names it. Naming an integration also needs
integrations:read.Fix Create a key with that scope (
grad keys create --scopes ...) or use anadminkey. See API key scopes.host_not_allowed403AUTH_MODE=noneonly: the request'sHostis a public DNS name, which could be a DNS-rebinding page.Fix Reach the server by
localhost, an IP or a compose service name, or serve the domain withAUTH_MODE=api_key.idempotency_key_invalid422Idempotency-Keyisn't 1 to 255 visible ASCII characters.Fix Send a UUID. The SDKs send one on every POST.
idempotency_key_reused422This
Idempotency-Keywas used before with a different body.Fix Use a new key for a new request; reuse a key only to retry the same request.
invalid_cursor422The
cursorisn't one this list returned.Fix Pass
next_cursor(ortail_cursorfor metrics) back unchanged; start over without a cursor.invalid_period422A usage period is empty:
frommust be beforeto.key_not_found404No API key with this id in the workspace.
malformed_request400The body isn't valid JSON.
Fix Send
Content-Type: application/jsonwith a JSON body. The SDKs never send this.not_event_stream200TypeScript and Go: the run event stream (
GET /v1/runs/{id}/events) answered with something other thantext/event-stream, usually a proxy or cache that ignores theAcceptheader. The SDKs raise a decode error instead of reconnecting.Fix Let
Accept: text/event-streamthrough to grad-server, and turn off response buffering and caching for/v1/runs/*/events.payload_too_large413The JSON body is over 32 MiB.
Fix Push records in smaller batches (the SDKs send 8-16 MiB), or upload a file with
POST /v1/uploadsand import it.route_not_found404No route matches the method and path.
Fix Check the base URL: grad-server serves
/v1/...on port 8787 (grad local uppublishes 18787).too_many_streams429This key already holds the most open event streams (SSE) it may.
Fix Close a stream, or poll the JSON page with
tail_cursorinstead.unauthorized401No API key, or the key is unknown, revoked or expired.
Fix Send
Authorization: Bearer <key>. The SDKs and CLI readGRADIATED_API_KEYor the profileGRADIATED_PROFILEnames;grad configshows which one they use.unknown_field422The body has a field the endpoint doesn't take, usually a typo. Request bodies are strict, nested objects included.
detailnames the field's path and the closest match (recipe.adapter.merge_on_exprot: unknown field (did you mean 'merge_on_export'?)) or lists valid fields at that level.Fix Rename or remove the field as suggested; see the API reference. Free-form maps (
metadata,pricing, score maps, and record contents) accept any key. SDKs raiseValidationErrorand the CLI catches the same typos before sending.validation_error422A field is missing, has the wrong type or is out of range.
detailnames each one with its path, separated by;(recipe.epochs: Too small: expected number to be >=1).Fix Fix the fields
detailnames and compare with the endpoint in the API reference. The SDKs raiseValidationErrorwith those fields parsed:.errorsin Python,fieldErrorsin TypeScript,FieldErrorsin Go.workspace_deleted403The workspace was deleted and its data is being removed.
workspace_suspended403The workspace is suspended: it can't start new jobs, and running jobs stop at their next checkpoint.
Fix Contact the workspace's admin, or Gradiated support on Gradiated Cloud.
Datasets and imports
dataset_exists409A dataset with this name already exists (or, for a filter, the name belongs to another dataset).
Fix Push to it instead of creating it, or pick another name.
dataset_in_use409The dataset cannot be deleted while referenced by runs, evals, sources, or an active import;
detailnames the referencing resource.Fix Wait for active imports to finish, or remove referencing sources before deleting the dataset.
dataset_not_found404No dataset with this name in the workspace.
Fix
grad datasets listshows the names;datasets.push()creates a dataset as it pushes.dataset_part_missing410Part of this dataset version is missing from object storage (the bucket was lost, or restored from a backup older than the database), so its records can't be read. Retrying won't help.
Fix Push or import the records again as a new version.
dataset_version_not_found404422The dataset has no such version; the message names its current version.
empty_dataset422The dataset version has zero records.
Fix Push records or wait for the import to finish, then plan again.
import_not_found404No import job with this id.
invalid_filter422A score condition isn't
<op><number>(>=0.8,==1; ops>= <= > < == !=).invalid_upload_format422A staged dataset push declared
format: "jsonl.gz"(or gzip bytes) that failed gzip decompression.Fix Verify the staged upload is valid UTF-8 JSONL or gzipped JSONL and retry.
no_usable_records422None of the records has the shape this recipe trains on; the message lists why for each kind of record.
Fix Check the record shapes in Trajectories, and preview with
grad render.records_batch_conflict409A record push reused a batch number for different records.
Fix Let the SDK number the batches, or give each push its own
Idempotency-Key.render_conflict422A record contradicts the render settings: a trained turn has reasoning with
thinking="off"or none withthinking="on"(an empty<think></think>is none),train: trueis set on a non-assistant message, or atool_callsentry isn't an object. The message names the record and message.Fix Use
thinking="auto", settrainonly on assistant messages, or fix the records.render_unsupported_model422The model isn't a chat model in the catalog, so there is no chat template to render.
Fix
grad models listshows the catalog.too_many_records422A staged synchronous dataset push contains more records than allowed in one synchronous commit.
Fix Use
POST /v1/datasets/{name}/imports(client.datasets.import_file(...)orgrad import) for larger datasets.unknown_upload422upload_idisn't an upload id: it is the file's sha256 (64 hex characters).upload_incomplete409The upload hasn't arrived in storage yet.
Fix
PUTthe file to the upload URL fromPOST /v1/uploadsfirst, then create the import. The SDKs do both.upload_integrity_error422The uploaded bytes don't match the sha256 the upload was created with.
Fix Upload the file again; check nothing rewrote it on the way (proxies, line-ending conversion).
upload_too_large422A staged synchronous dataset push (
POST /v1/datasets/{name}/recordswithupload_id) exceeds the compressed or uncompressed size cap.Fix Use
POST /v1/datasets/{name}/imports(client.datasets.import_file(...)orgrad import) for larger files.
Runs and recipes
adapter_conflict422Continued training keeps the starting artifact's LoRA rank and alpha, and the recipe asked for different ones.
Fix Omit
recipe.adapter, or match the artifact's.adapter_not_supported422The base model doesn't support this adapter kind; the message lists the ones it does.
budget_exhausted409The run has spent its
max_cost_usd.Fix Resume it with a higher cap:
grad runs resume RUN --max-cost-usd N.cartridge_context_required422A cartridge recipe needs the document to compress.
Fix Pass
recipe.context_text(Context.from_file(...)reads a local file).checkpoint_eval_code_scorer422recipe.evalshas code scorers; evals during training take judges, regexes and validators only.Fix Run code scorers in an eval of
run.artifactafter training.continued_training_unsupported422The starting artifact can't be trained further: it has no recorded LoRA adapter, or it is a merged model.
Fix Continue from an artifact trained with
merge_on_export=false.distill_context_needs_on_policy422recipe.contextis read by the teacher during on-policy distillation, so it can't be combined withrollout=OffPolicy().distill_teacher_is_student422The teacher is the student model.
Fix Pass a larger teacher, or a
context=the teacher reads and the student doesn't.distill_teacher_required422Distillation needs
teacher=.Fix Pass a larger catalog model (such as
qwen/qwen3-14b), or withrollout=OffPolicy()an artifact or any model your inference endpoint serves.distill_teacher_unsupported422On-policy distillation loads the teacher in the trainer, which takes catalog models only.
Fix To learn from an artifact, pass
rollout=OffPolicy().distill_tokenizer_mismatch422On-policy distillation needs teacher and student to share a tokenizer.
Fix Pick a teacher from the student's family, or pass
rollout=OffPolicy().duplicate_checkpoint_eval422Two
recipe.evalshave the same name.Fix Pass
name=to tell evals on the same dataset apart.invalid_decision_schema422A
DecisionModelRecipedataset has a malformedquestionsdefinition or anexpected_outputvalue that doesn't match its declaredchoice,noul, orscoreschema.Fix Ensure every question declares a valid
type(choice,noul,score) andcriteria, and thatexpected_outputmaps question names to valid answers.loss_unsupported422This recipe doesn't train with that loss (or chooses its own).
max_seq_len_exceeds_context422recipe.max_seq_lenexceeds the chosen encoder model'smax_context_tokenswindow.Fix Lower
max_seq_lento fit the encoder's context limit, or choose a longer-context encoder (baai/bge-m3,nomic-ai/nomic-embed-text-v1.5, orqwen/qwen3-embedding-0.6b).merged_export_too_large422merge_on_export=trueon a base whose merged bf16 weights are bigger than an artifact may be (5 GiB): every catalog base fromqwen/qwen3-4bup. The plan refuses it before anything trains.Fix Train with
merge_on_export=falseand merge the downloaded adapter locally:PeftModel.from_pretrained(base, dir).merge_and_unload().model_exceeds_gpu_memory422The model (with its teacher, for distillation) needs more GPU memory than one training GPU has.
Fix Pick a smaller model or teacher; see the GPU memory column in Supported models.
queue_limit429The workspace already has the most queued runs, imports, evals and trainers it may (
GRAD_MAX_QUEUED_PER_WORKSPACE, 500 by default). The SDKs don't retry it.Fix Wait for queued jobs to start, or cancel some, then create the job again.
recipe_deferred422This recipe kind is deferred past v0 (Wave 2). Supported managed recipes are
sft,dpo,grpo,router,decision,cartridge,embedding,distill, andreward.Fix Use a supported managed recipe (including
GRPORecipefor single-turn verifiable RL) or the Trainer API for custom loops.recipe_not_supported_for_model422The base model can't train this recipe; the message lists the models that can.
Fix See Supported models.
recipe_param_conflict422A recipe field and the same setting inside
recipe.lossdisagree.Fix Set one of them.
recipe_param_invalid422A recipe-specific parameter failed semantic validation (for example, duplicate values in
matryoshka_dims).Fix Fix the parameter named in
detailand re-plan the run.recipe_param_unsupported422A recipe field doesn't apply to this recipe; the message names the recipes it belongs to.
reward_rubric_unsupported422RewardModelRecipe(rubric=...)takes the name of a score already on your records, not judge or validator items.reward_score_out_of_range422Reward scores must be in [0, 1]; the message names the record.
router_candidates_required422A router needs scores for at least two candidate models.
Fix Pass
recipe.models, or train on records scored for two or more models.router_fallback_not_candidate422recipe.fallbackisn't one of the candidate models.router_pricing_not_candidate422recipe.pricingnames a model that isn't a candidate.router_score_out_of_range422Router scores must be in [0, 1]; the message names the record.
run_not_cancellable409The run already finished.
run_not_found404No run with this id in the workspace.
run_not_resumable409Only a stopped, failed or cancelled run resumes. A run cancelled a moment ago may still be stopping its worker.
Fix Wait a few seconds and resume again.
run_state_changed409The run changed while this request was handled.
Fix Retry the request.
run_unbuildable409Something the run needs (its dataset version, labeling eval or starting artifact) is gone, so its job can't be built.
unknown_model422The model is neither a trainable base model nor an artifact in this workspace; the message suggests a close match.
Fix
grad models list(GET /v1/base-models) shows the trainable models; artifacts arename@versionorname@latest.
Trainers
artifact_not_trainable422The
from_artifactpassed toPOST /v1/trainersisn't apeft_loraartifact whose base model supports trainers.Fix Pass a
peft_loraartifact trained on a supported causal LM base.budget_exceeded409The op's worst-case token cost would pass the trainer's
max_cost_usdcap.Fix Close or export the trainer (
optim_step,save_state,export,renderandclosestill work at the cap), or resume from its checkpoint with a highermax_cost_usd.checkpoint_not_resumable422The
from_checkpointpassed toPOST /v1/trainersisn't a trainer saved-state checkpoint.Fix Pass a checkpoint returned by
trainer.save_state(), autosave or parking.datum_too_long422A token datum or token sample prompt (plus
max_tokens) exceeds the trainer'smax_seq_len(min(model.max_context_tokens, 32768)).Fix Shorten the prompt or lower
max_tokensto fittrainer.max_seq_len.incompatible_adapter422The checkpoint or artifact named in
sample(weights=...)isn't apeft_loraortrainer_stateLoRA adapter.Fix Hot-swap only
peft_loraartifacts or trainer saved-state checkpoints.incompatible_base_model422The checkpoint or artifact named in
sample(weights=...)was trained on a different base model than the warm sampler session.Fix Open a sampler on the matching base model, or swap adapters trained on the same base.
invalid_datum422A datum is missing fields its loss reads (
weights,coefficients,sampling_logprobsoradvantages), has a non-zero weight/coefficient at index 0, has an out-of-vocabulary token id, or is a chatmessagessample prompt already at or overmax_seq_len(chat prompts with room left clampmax_tokensautomatically).Fix Check token-array lengths and index-0 weights, shorten the prompt below
trainer.max_seq_len, or build RL datums withDatum.from_sample/Datum.from_trajectoryandgrad.with_advantages.invalid_result422Worker protocol: the worker posted a malformed or mismatched op result payload.
invalid_weights422The
weightsselector onsampleisn't valid here (for example, hot-swappingcheckpoint:<id>orartifact:<id>on amode: "train"trainer, or a malformed selector).Fix Open a
mode: "sample"session (client.open_sampler(...)) to hot-swapcheckpoint:<id>,artifact:<id>,baseorinitial.missing_checkpoint422Worker protocol: parking a
mode: "train"trainer requires a savedcheckpoint_id.op_out_of_order409Worker protocol: the worker posted an op result out of
seqorder.request_key_conflict409A sample-lane
request_keywas reused on the same snapshot with a different request body.Fix Use a fresh
request_keyfor each distinct sample request; reuse one only when retrying the identical call.sample_only_trainer422A training or checkpoint-mutation op (
forward_backward,optim_step,save_stateorexport) was sent to amode: "sample"trainer.Fix Use
sample,forward,renderorsnapshoton a sampler, or open amode: "train"trainer to update weights.sample_too_large422The
sampleop asks for more than 1,048,576 generated tokens (prompts × num_samples × max_tokens).Fix Split the prompts across multiple
samplecalls or lowernum_samples/max_tokens.seq_conflict409The train-lane op's
seqisn't the trainer'snext_seq, or a resend of thatseqcarried a different body.detailnames the expectedseq.Fix Read
trainer.next_seqand send ops in order. The SDKs assignseqautomatically and resync after a dropped connection.snapshot_not_found404No snapshot with this
seqexists on this trainer.snapshot_released409The snapshot was released explicitly or expired after
snapshot_ttl_s; queued samples on it fail loudly.Fix Take a fresh snapshot with
trainer.snapshot().too_many_snapshots409The trainer already holds
max_snapshots(1–8, default 4) pending or live snapshots; snapshots are never silently evicted.Fix Release an unused snapshot (
snap.release()orDELETE /v1/trainers/{id}/snapshots/{seq}), or create the trainer with a highermax_snapshots.trainer_not_found404No trainer with this id in the workspace.
trainer_op_not_found404No op with this id on this trainer.
trainer_unsupported_model422The requested model cannot run in an interactive
Trainersession (for example, embedding encoders are not causal LMs).Fix Use a causal LM from
grad models listforTrainer, or useEmbeddingRecipeto fine-tune embedding encoders.uncalibrated_model422optim_stepasked forlr: "auto", but the base model has no calibrated learning rate for the requestedobjective(sft,rl,dpo).Fix Pass an explicit numeric
lr(checktrainer.calibrated_lrsto see calibrated objectives for this base model).wrong_upload_kind422Worker protocol: a trainer upload ticket only accepts
checkpointorartifactkinds.
Media and multimodal
invalid_media422The image or audio payload is corrupt, empty, not valid base64, or not a supported PNG/JPEG/WebP image or RIFF/WAVE audio file (0.05–30 s, 8–96 kHz, 1–2 channels).
Fix Encode a valid PNG, JPEG, WebP or PCM WAV file (use
grad.Image/grad.Audioorimage_part/audio_part).invalid_media_role422An image or audio content part appeared inside a
systemorassistantmessage.Fix Attach media parts only on
userortoolmessages.invalid_media_uri422An image URL used a remote or local URI scheme (
http://,https://,file://), or a dataset/offline-eval record used a Trainer-API-scopedgrad://media/med_…orinput_audio.media_idreference.Fix Pass inline
data:image/(png|jpeg|webp);base64,…URIs for datasets and offline evals (zero SSRF: workers never fetch external URLs), orgrad://media/med_…/media_idon Trainer API calls.media_not_found404No uploaded media object with this
med_…id in the workspace.Fix Upload the image or WAV audio first with
POST /v1/media(client.media.upload(...)orgrad.Image.upload(...)).media_too_large422An image exceeds 5 MiB, a WAV clip exceeds 10 MiB, or total decoded media in one trainer op exceeds 20 MiB.
Fix Resize or compress the media, or split the batch across smaller ops.
too_many_media_items422A datum carries more than 8 images, more than 4 audio clips, or more than 8 total media items.
Fix Keep at most 8 images, 4 audio clips and 8 total media items per example.
unsupported_media_type422POST /v1/mediareceived aContent-Typeother thanapplication/json,image/png,image/jpeg,image/webporaudio/wav.Fix Send JSON
{kind, mime, data}or raw bytes with one of the supported image/audio MIME types.unsupported_modality422The input carries a modality (image, audio or video) that this base model, recipe or eval target does not support, or
adapter.train_multimodal_projectorwas enabled on a text-only base model.Fix Use a multimodal base model (check
modalitiesonGET /v1/base-modelsor Supported models) withSFTRecipe,DPORecipe, off-policyDistillRecipe,RewardModelRecipe, the Trainer API, or multimodal evals.
Checkpoints and artifacts
artifact_import_not_found404No artifact import with this id.
artifact_not_found404No artifact with this id,
name@versionorname@latest.artifact_not_servable409422The artifact can't be served for an eval: it is a reference bundle (the reference trainer's output), or Gradiated Cloud can't serve its format.
checkpoint_conflict409A checkpoint for this step of this attempt already exists with different contents.
checkpoint_expired410The checkpoint passed its retention TTL (
ttl_s,checkpoint_ttl_s, orcheckpoint_ttl_days) and its weights were swept.Fix Keep important checkpoints longer with
PATCH /v1/checkpoints/{id}(grad checkpoints update ID --permanent), or promote/export them as artifacts.checkpoint_not_exportable409The checkpoint holds training state only; the recipe didn't export it as an artifact.
Fix Promote the run's final artifact, or a checkpoint that has a format.
checkpoint_not_found404No checkpoint with this id in the workspace.
Fix Check the checkpoint id on the run or trainer (
grad runs get/grad runs checkpoints).format_base_mismatch422The format and the base model disagree:
encoder_safetensorsneeds an encoder base model, every other format a causal LM.invalid_format422Unknown artifact format.
invalid_manifest422The bundle's manifest doesn't match the import (for a Hub import, its provenance must name the commit imported).
manifest_mismatch409The bundle's manifest names a different format or base model from the import's.
name_required422An artifact upload needs a
name. The SDKs default it to the file or directory name.
Evals and scoring
baseline_mismatch422baseline_evaldoes not match the new eval's dataset, version, rubric hash, environment fingerprint,samples,max_turnsortemperature.Fix Compare against a baseline eval run on the exact same dataset version, rubric, environment version and sampling settings.
duplicate_model422The eval's
modelslist names the same model or policy label twice.Fix Give each evaluated model or policy a unique name.
duplicate_scorer422Two rubric items have the same name.
empty_eval422The dataset version has no records with a usable prompt.
environment_not_found404No registered environment matches the given
env_...id orname@versionreference in this workspace.Fix Run
grad envs listto see available environments, or push one withgrad envs push.environment_version_exists409An environment with this
nameand explicitversionalready exists in the workspace (environment versions are immutable).Fix Omit
versionto auto-increment (v1,v2, …), or pick a new version tag.eval_incomplete409POST /v1/evals/{id}/completewas called before every(model, task, sample)output cell was posted.Fix Read
GET /v1/evals/{id}/outputs?fields=key, post the remaining outputs, then call/completeagain.eval_not_awaiting_outputs409Rollout outputs or
/completecan only be posted while an agent eval (mode: "env") isawaiting_outputs.eval_not_awaiting_scores409Scores can only be posted while the eval is
awaiting_scores.eval_not_cancellable409The eval already finished.
eval_not_client_driven409POST /v1/evals/{id}/outputsand/completeonly apply to client-driven agent evals created withenv(mode: "env").eval_not_completed409Results are available once the eval completes.
Fix Wait for it:
ev.wait()orgrad evals wait EVAL.eval_not_found404No eval with this id.
inference_error502The inference or judge endpoint answered with an error; that output records it.
insufficient_paired_tasks422Regression gating requires at least 30 paired tasks between the candidate and baseline.
Fix Evaluate on a dataset (or
limit) with at least 30 tasks before enablinggate.invalid_baseline422Both
baselineandbaseline_evalwere set on the same eval request.Fix Pass either
baseline(a model in this eval) orbaseline_eval(a previous completed eval), not both.invalid_environment_bundle422The uploaded
.tar.gzenvironment bundle is malformed, exceeds the 64 MiB limit, contains unsafe archive entries, or is missing required Harbor/sandbox files.Fix Validate the directory locally with
grad envs verify <dir>before pushing.invalid_gate422A regression
gatewas configured without abaselineorbaseline_eval, or itsbaselineisn't inmodels.Fix Pass
baseline(included inmodels) orbaseline_evalalongsidegate.invalid_model_label422An agent-eval (
mode: "env") policy label contains disallowed characters or exceeds the length limit.Fix Use a short label with letters, digits,
.,_,/,@,:or-.unknown_eval_output422A posted score names an output that isn't part of this eval.
unknown_judge_model422The judge is neither a priced judge on this server nor an artifact in the workspace.
Fix Self-hosted, operators add judges with
GRAD_JUDGE_MODELS_JSON; ongrad local up --dev-modelsusetest/tiny-judge.unknown_scorer422The scorer named isn't one of this eval's code scorers.
Integrations and sources
integration_ambiguous422The workspace has several integrations of this provider, so
integrationcan't be left out;integrationslists their names.Fix Pass
integration(--from NAME,--integration NAME).integration_changed409Gradiated Cloud: the integration's host or credentials changed while this request ran, so nothing was written.
Fix Read the integration again and retry.
integration_credentials_invalid422A credential field this provider doesn't take, or a required one missing; the message lists the provider's fields.
integration_credentials_required422Changing an integration's host needs every credential again, in the same request, so credentials never go to a host they weren't given for.
integration_deleted409The source's integration was deleted.
Fix Connect the provider again and add a new source, or delete the source.
integration_exists409The workspace already has an integration with this name.
Fix Choose another
name, or rotate the existing one withgrad integrations update NAME.integration_host_invalid422The host isn't a public
https://URL, or it was given for Hugging Face, whose host is fixed.integration_host_not_allowed422An integration's credentials may only go to its own host, and this request would send them elsewhere.
Fix Use an integration whose host is the one you need, or change its host (with its credentials).
integration_host_required422MLflow integrations need
host: the MLflow tracking URI.integration_in_use409Sources, running imports or running training jobs use this integration; the message and
used_bylist them.Fix Remove those sources first, or wait for the imports and runs to finish.
integration_not_found404422No integration with this name in the workspace (404 on
/v1/integrations/{name}, 422 where a source, import or logger names it).Fix
grad integrations listshows them; connect one withgrad integrations add PROVIDER.integration_provider_mismatch422The named integration is for another provider than the source, import or logger needs.
integration_required422This source or logger needs an integration of its provider, and the workspace has none.
Fix Connect one first:
grad integrations add PROVIDER.integration_unreadable409A source's integration credentials can't be read; the message says why (for example, they were stored under another
GRAD_SECRETS_KEY).Fix Enter the credentials again:
grad integrations update NAME.invalid_schedule422The schedule isn't a five-field UTC cron (
*/15 * * * *), or it can never fire (0 0 30 2 *, or the 31st in months that have 30 days).Fix Use a cron that fires at least once a year. The day fields follow Vixie cron: when one starts with
*(*/2), a day must match both.source_filter_invalid422A filter value has the wrong shape, or
fromisn't beforeto.source_filter_unsupported422This provider has no such filter; the message lists its filters.
source_integration_unsupported422The
gradiatedsource reads the workspace's own gateway traces and takes no integration.Fix Leave
integrationout.source_not_found404No source with this id.
source_project_required422Braintrust and PostHog sources need
project.source_provider_required422The source names neither an integration nor a provider
kind.Fix Pass
integration(--from NAME), or the provider kind when the workspace has exactly one integration of it.source_provider_unsupported422grad can't sync from this provider; the message lists the ones it can.
Fix Export traces to a file and
grad importit, or push records withdataset.push().source_removed409The source was removed, so there is nothing to sync.
source_upstream_error502The trace provider answered a sync with an error.
Server and capacity
internal_error500An unexpected server error.
Fix Retry (the SDKs do); if it persists, report it with the
request_id.shutting_down503GET /health/readyon a replica that is draining before it stops, so load balancers send traffic elsewhere.Fix Nothing to do: retry, and another replica answers.
storage_object_missing500Data the request needs is missing from object storage: it was lost, or the bucket was restored from a backup older than the database.
Fix Restore the bucket from a backup taken after the database's, or report it with the
request_id.
Gradiated Cloud
billing_denied403The workspace's balance can't cover the run or eval.
Fix Top up, then resume with the same cap.
checkpoint_evals_unsupported_on_cloud422recipe.evals(evals of each checkpoint during training) isn't supported on Gradiated Cloud yet.Fix Drop
recipe.evalsand evaluaterun.artifactafter training.keys_managed_by_cloud501With
AUTH_MODE=cloud, keys are created and revoked in the Gradiated console, not/v1/keys.
By HTTP status
- 200
not_event_stream- 400 Malformed request
malformed_request- 401 Authentication required
unauthorized- 403 Forbidden
billing_denied,cross_site_request,forbidden,host_not_allowed,workspace_deleted,workspace_suspended- 404 Not found
artifact_import_not_found,artifact_not_found,checkpoint_not_found,cloud_training_unavailable,dataset_not_found,dataset_version_not_found,environment_not_found,eval_not_found,import_not_found,integration_not_found,key_not_found,media_not_found,route_not_found,run_not_found,snapshot_not_found,source_not_found,trainer_not_found,trainer_op_not_found- 409 Conflict
artifact_not_servable,budget_exceeded,budget_exhausted,checkpoint_conflict,checkpoint_not_exportable,dataset_exists,dataset_in_use,environment_version_exists,eval_incomplete,eval_not_awaiting_outputs,eval_not_awaiting_scores,eval_not_cancellable,eval_not_client_driven,eval_not_completed,idempotency_replay_unavailable,integration_changed,integration_deleted,integration_exists,integration_in_use,integration_unreadable,manifest_mismatch,op_out_of_order,records_batch_conflict,request_key_conflict,run_not_cancellable,run_not_resumable,run_state_changed,run_unbuildable,seq_conflict,snapshot_released,source_removed,too_many_snapshots,upload_incomplete- 410 Gone
checkpoint_expired,dataset_part_missing- 413 Payload too large
payload_too_large- 422 Unprocessable request
adapter_conflict,adapter_not_supported,artifact_not_servable,artifact_not_trainable,baseline_mismatch,cartridge_context_required,checkpoint_eval_code_scorer,checkpoint_evals_unsupported_on_cloud,checkpoint_not_resumable,continued_training_unsupported,dataset_version_not_found,datum_too_long,distill_context_needs_on_policy,distill_teacher_is_student,distill_teacher_required,distill_teacher_unsupported,distill_tokenizer_mismatch,duplicate_checkpoint_eval,duplicate_model,duplicate_scorer,empty_dataset,empty_eval,format_base_mismatch,idempotency_key_invalid,idempotency_key_reused,incompatible_adapter,incompatible_base_model,insufficient_paired_tasks,integration_ambiguous,integration_credentials_invalid,integration_credentials_required,integration_host_invalid,integration_host_not_allowed,integration_host_required,integration_not_found,integration_provider_mismatch,integration_required,invalid_baseline,invalid_cursor,invalid_datum,invalid_decision_schema,invalid_environment_bundle,invalid_filter,invalid_format,invalid_gate,invalid_manifest,invalid_media,invalid_media_role,invalid_media_uri,invalid_model_label,invalid_period,invalid_result,invalid_schedule,invalid_upload_format,invalid_weights,loss_unsupported,max_seq_len_exceeds_context,media_too_large,merged_export_too_large,missing_checkpoint,model_exceeds_gpu_memory,name_required,no_usable_records,recipe_deferred,recipe_not_supported_for_model,recipe_param_conflict,recipe_param_invalid,recipe_param_unsupported,render_conflict,render_unsupported_model,reward_rubric_unsupported,reward_score_out_of_range,router_candidates_required,router_fallback_not_candidate,router_pricing_not_candidate,router_score_out_of_range,sample_only_trainer,sample_too_large,scorer_sandbox_unavailable,source_filter_invalid,source_filter_unsupported,source_integration_unsupported,source_project_required,source_provider_required,source_provider_unsupported,too_many_media_items,too_many_records,trainer_unsupported_model,uncalibrated_model,unknown_eval_output,unknown_field,unknown_judge_model,unknown_model,unknown_scorer,unknown_upload,unsupported_media_type,unsupported_modality,upload_integrity_error,upload_too_large,validation_error,wrong_upload_kind- 429 Too many requests
queue_limit,too_many_streams- 500 Internal server error
internal_error,storage_object_missing- 501 Not available on this server
inference_unavailable,keys_managed_by_cloud,secrets_unavailable,source_unavailable- 502 Upstream error
inference_error,source_upstream_error