QVAC Logo

Errors

SDK error codes reference

Example

import { SDK_CLIENT_ERROR_CODES, SDK_SERVER_ERROR_CODES } from "@qvac/sdk";

try {
  await loadModel({ modelSrc: "/path/to/model.gguf", modelType: "llm" });
} catch (error) {
  if (error.code === SDK_SERVER_ERROR_CODES.MODEL_LOAD_FAILED) {
    // handle model load failure
  }
}

Client errors

Thrown on the client side (response validation, RPC, provider). Access via SDK_CLIENT_ERROR_CODES.{ERROR_NAME}.

ErrorCodeSummary
INVALID_RESPONSE_TYPE50001Invalid response type received, expected: …
INVALID_OPERATION_IN_RESPONSE50002Invalid operation type in response
STREAM_ENDED_WITHOUT_RESPONSE50003Stream ended without receiving final response
INVALID_AUDIO_CHUNK_TYPE50004Invalid audio chunk type received
INVALID_TOOLS_ARRAY50005Invalid tools array provided
INVALID_TOOL_SCHEMA50006Invalid tool schema: …
OCR_FAILED50007OCR operation failed…
RPC_NO_HANDLER50200No handler function registered for request type: …
RPC_REQUEST_NOT_SENT50201Cannot perform operation - request has not been sent yet
RPC_RESPONSE_STREAM_NOT_CREATED50202Cannot perform operation - response stream not created
RPC_CONNECTION_FAILED50203RPC connection failed: …
PROVIDER_START_FAILED50400Failed to start provider…
PROVIDER_STOP_FAILED50401Failed to stop provider…
DELEGATE_NO_FINAL_RESPONSE50402No final response received from delegated provider
DELEGATE_PROVIDER_ERROR50403Delegated provider error: …
DELEGATE_CONNECTION_FAILED50404Failed to connect to delegated provider: …
SDK_NOT_FOUND_IN_NODE_MODULES50600QVAC SDK not found in node_modules. Checked: @qvac/sdk, @tetherto/sdk-mono, @tetherto/sdk-dev
WORKER_FILE_NOT_FOUND50601Worker file not found at …
CONFIG_FILE_NOT_FOUND50602Config file not found. Searched: …. Create qvac.config.json, qvac.config.js, or qvac.config.ts in your project root.
CONFIG_FILE_INVALID50603Config file at … is invalid: …
CONFIG_FILE_PARSE_FAILED50604Failed to parse config file at …: …
CONFIG_VALIDATION_FAILED50605Config validation failed: …
PEAR_WORKER_ENTRY_REQUIRED50606No plugins registered. Pear apps must spawn … as the worker entry. Run \
MULTIPLE_SDK_INSTALLATIONS50607Multiple QVAC SDK installations found: …. Remove all but one to avoid conflicts.
PROFILER_INVALID_CAPACITY50800Ring buffer capacity must be at least …

Server errors

Thrown by the server (model operations, downloads, cache, RAG). Access via SDK_SERVER_ERROR_CODES.{ERROR_NAME}.

ErrorCodeSummary
MODEL_ALREADY_REGISTERED52001Model with ID "…" is already registered
MODEL_NOT_FOUND52002Model with ID "…" not found
MODEL_NOT_LOADED52003Model with ID "…" is not loaded
MODEL_IS_DELEGATED52004Model "…" is a delegated model and cannot be accessed directly
UNKNOWN_MODEL_TYPE52005Unknown model type: …. If using a custom worker bundle, ensure the plugin for "…" is included in your qvac.config plugins array and rebuild with "npx qvac bundle sdk".
MODEL_LOAD_FAILED52200Failed to load model…
MODEL_FILE_NOT_FOUND52201Model file not found: …
MODEL_FILE_NOT_FOUND_IN_DIR52202… model file … not found in directory …
MODEL_FILE_LOCATE_FAILED52203Failed to locate … model file: …
PROJECTION_MODEL_REQUIRED52204Projection model source is required for multimodal LLM models
VAD_MODEL_REQUIRED52205VAD model source is required for this configuration
TTS_ARTIFACTS_REQUIRED52208TTS (Chatterbox) requires ttsTokenizerSrc, ttsSpeechEncoderSrc, ttsEmbedTokensSrc, ttsConditionalDecoderSrc, and ttsLanguageModelSrc
TTS_REFERENCE_AUDIO_REQUIRED52209TTS (Chatterbox) requires referenceAudioSrc (path or URL to a WAV file for voice cloning)
PARAKEET_ARTIFACTS_REQUIRED52210Parakeet model sources are missing. TDT requires parakeetEncoderSrc, parakeetDecoderSrc, parakeetVocabSrc, parakeetPreprocessorSrc. CTC requires parakeetCtcModelSrc, parakeetTokenizerSrc. Sortformer requires parakeetSortformerSrc.
MODEL_UNLOAD_FAILED52400Failed to unload model…
EMBED_FAILED52401Failed to generate embeddings…
EMBED_NO_EMBEDDINGS52402No embeddings returned from model
TRANSCRIPTION_FAILED52403Transcription failed…
AUDIO_FILE_NOT_FOUND52404Audio file not found or not accessible: …
TRANSLATION_FAILED52405Translation failed…
COMPLETION_FAILED52406Completion failed…
ATTACHMENT_NOT_FOUND52407Attachment not found at path: …
CANCEL_FAILED52408Failed to cancel operation…
TEXT_TO_SPEECH_FAILED52409Text-to-speech operation failed…
CONFIG_RELOAD_NOT_SUPPORTED52410Model "…" does not support hot config reload
MODEL_TYPE_MISMATCH52411Model type mismatch: expected "…", got "…"
OCR_FAILED52412OCR operation failed…
IMAGE_FILE_NOT_FOUND52413Image file not found or not accessible: …
INVALID_IMAGE_INPUT52414Invalid image input type provided
RAG_SAVE_FAILED52800Failed to save embeddings…
RAG_SEARCH_FAILED52801Failed to search embeddings…
RAG_DELETE_FAILED52802Failed to delete embeddings…
RAG_UNKNOWN_OPERATION52803Unknown RAG operation: …
RAG_HYPERDB_FAILED52804HyperDB RAG operation failed: …
RAG_WORKSPACE_MODEL_MISMATCH52805Workspace "…" is configured for model "…", but you're trying to use model "…". Use a different workspace or the same model
RAG_WORKSPACE_NOT_FOUND52806RAG workspace not found: …
RAG_WORKSPACE_IN_USE52807RAG workspace '…' is currently in use. Close it first.
RAG_WORKSPACE_CLOSE_FAILED52808Failed to close RAG workspace…
RAG_LIST_WORKSPACES_FAILED52809Failed to list RAG workspaces…
RAG_CHUNK_FAILED52810Failed to chunk documents…
RAG_WORKSPACE_NOT_OPEN52811RAG workspace '…' is not open
FILE_NOT_FOUND53000File not found: …
DOWNLOAD_CANCELLED53001Download was cancelled
CHECKSUM_VALIDATION_FAILED53002Checksum validation failed for …
HTTP_ERROR53003HTTP error: … …
NO_RESPONSE_BODY53004No response body received from HTTP request
RESPONSE_BODY_NOT_READABLE53005Response body is not readable
NO_BLOB_FOUND53006No blob found for …
DOWNLOAD_ASSET_FAILED53007Failed to download asset…
SEEDING_NOT_SUPPORTED53008Seeding is only supported for hyperdrive models
HYPERDRIVE_DOWNLOAD_FAILED53009Hyperdrive download failed: …
INVALID_SHARD_URL_PATTERN53010URL does not contain a valid sharded model pattern: …
ARCHIVE_EXTRACTION_FAILED53011Failed to extract archive: …
ARCHIVE_UNSUPPORTED_TYPE53012Unsupported archive type: …
ARCHIVE_MISSING_SHARDS53013Archive is missing required shard file: …
PARTIAL_DOWNLOAD_OFFLINE53014Cannot resume partial download (… bytes downloaded) - unable to connect. URL: …
REGISTRY_DOWNLOAD_FAILED53015Registry download failed: …
DELETE_CACHE_FAILED53200Failed to delete cache…
INVALID_DELETE_CACHE_PARAMS53201Invalid deleteCache parameters - provide either modelId or cacheKey
CACHE_DIR_NOT_ABSOLUTE53202Cache directory must be an absolute path
CACHE_DIR_NOT_WRITABLE53203Cache directory is not writable: ……
SET_CONFIG_FAILED53350Failed to set config…
CONFIG_ALREADY_SET53351Config has already been set and is immutable. Config can only be set once during SDK initialization.
FFMPEG_NOT_AVAILABLE53500FFmpeg is not available on this system
AUDIO_PLAYER_FAILED53501Audio player failed: …
INVALID_AUDIO_CHUNK_TYPE53502Invalid audio chunk type
DELEGATE_NO_FINAL_RESPONSE53700No final response received from delegated provider
DELEGATE_CONNECTION_FAILED53701Failed to connect to delegated provider: …
DELEGATE_PROVIDER_ERROR53702Delegated provider error: …
RPC_NO_DATA_RECEIVED53703No data received from request
RPC_UNKNOWN_REQUEST_TYPE53704Unknown request type received: …
PLUGIN_NOT_FOUND53850Plugin not found for model type "…". If using a custom worker bundle, ensure the plugin is included in your qvac.config plugins array and rebuild with "npx qvac bundle sdk".
PLUGIN_HANDLER_NOT_FOUND53851Handler "…" not found in plugin "…"
PLUGIN_REQUEST_VALIDATION_FAILED53852Request validation failed for handler "…"…
PLUGIN_RESPONSE_VALIDATION_FAILED53853Response validation failed for handler "…"…
PLUGIN_ALREADY_REGISTERED53854Plugin already registered for modelType: …
PLUGIN_HANDLER_TYPE_MISMATCH53855Handler "…" is …, but was called as …. Use invokePlugin() for reply handlers and invokePluginStream() for streaming handlers.
PLUGIN_LOGGING_INVALID53856Plugin "…" has invalid logging configuration: …
PLUGIN_DEFINITION_INVALID53857Plugin definition invalid for "…": …
PLUGIN_MODEL_TYPE_RESERVED53858modelType "…" is reserved for built-in plugins
PLUGIN_LOAD_CONFIG_VALIDATION_FAILED53859modelConfig validation failed for "…": …
PATH_TRAVERSAL53900Path traversal detected: "…" escapes base directory "…"
QVAC_MODEL_REGISTRY_QUERY_FAILED53950QVAC model registry query failed…

On this page