Skip to content
Error Codes Reference

Error Codes Reference

PT | EN

Complete error code reference: HTTP codes, messages, root causes, and solutions.

400 - Bad Request

Your request is malformed or has invalid parameters.

ErrorCauseSolution
INVALID_QUERYQuery too short (<3 chars) or long (>10K)Reformulate: “How to validate tokens?” (5-100 chars recommended)
INVALID_NAMESPACENamespace does not existCreate with vectora namespace create your-ns
INVALID_PARAMStop_k is not a number, invalid filterCheck types: {"top_k": 10, "namespace": "proj"}
MISSING_REQUIRED_FIELDMissing required fieldsQuery and namespace are required

Debug: Use vectora search --debug to see the exact payload.

401 - Unauthorized

Authentication or permission failure.

ErrorCauseSolution
INVALID_TOKENExpired or invalid tokenGenerate new: vectora auth token create
MISSING_CREDENTIALSAPI key not configuredvectora config set GEMINI_API_KEY "your-key"
PERMISSION_DENIEDYour role does not have permissionContact admin for upgrade (Owner/Admin can change RBAC)
SESSION_EXPIREDSession > 7 daysReauthenticate: vectora auth login

Debug: vectora auth status shows current token and expiration.

404 - Not Found

Resource does not exist.

ErrorCauseSolution
NAMESPACE_NOT_FOUNDNamespace deleted or not sharedList with vectora namespace list
FILE_NOT_FOUNDFile is not indexedReindex: vectora index --force
CHUNK_NOT_FOUNDChunk was deletedNo solution, chunk was removed

429 - Rate Limited

You exceeded rate limit or API quotas.

ErrorLimitSolution
RATE_LIMIT_EXCEEDED60 req/minWait 1 min or implement exponential backoff
QUOTA_EXCEEDEDMonthly token limit reachedUpgrade to Pro (500k tokens/month) or wait for reset
CONCURRENT_LIMITToo many concurrent requestsUse connection pooling, max 10 concurrent

Debug: Response headers show X-RateLimit-Remaining.

500 - Server Error

Internal error in Vectora or dependencies.

ErrorCauseSolution
EMBEDDING_FAILEDVoyage API unavailableCheck VOYAGE_API_KEY and Voyage status
SEARCH_FAILEDDatabase unavailableCheck network connection, cluster status
RERANK_FAILEDReranker offlineWait for automatic recovery (3s retry)
LLM_ERRORGemini API errorCheck GEMINI_API_KEY and quota on Google AI Console
TIMEOUTRequest > 30sQuery too complex, simplify

Debug: Full stack trace in ~/.vectora/logs/error.log.

CLI Exit Codes

0 Success
1 Generic error
2 Configuration error (invalid YAML file)
3 API error (500, timeout)
4 Auth failed (401, invalid token)
5 Namespace not found (404)
127 Command not found

Enable Debug Mode

For complex issues, debug mode provides a detailed view of the system’s inner workings, including network logs and raw API payloads.

# Debug mode shows stack traces and verbose logging
VECTORA_DEBUG=true vectora search "query"

# Or with flag
vectora --debug search "query"

# Or globally
vectora config set DEBUG true

Example: Common Troubleshoot

To facilitate resolution, keep your environment updated and check network settings before performing manual token exchange procedures.

Scenario: INVALID_TOKEN when using MCP in Claude Code

# 1. Verify if token exists
vectora auth status
# Output: Token: exp_...abc | Expires: 2026-05-19

# 2. If expired, regenerate
vectora auth token create
# Output: New token: exp_...xyz | Valid until: 2026-06-19

# 3. Update Claude Code config
# ~/.claude/claude_desktop_config.json
{
  "mcpServers": {
    "vectora": {
      "command": "vectora",
      "args": ["mcp", "--stdio"],
      "env": {
        "VECTORA_TOKEN": "exp_...xyz" # New token here
      }
    }
  }
}

# 4. Restart Claude Code

Reporting Bugs

If you see an undocumented error:

  1. Collect logs: vectora logs --since 1h
  2. Enable debug: VECTORA_DEBUG=true vectora ...
  3. Open issue: https://github.com/Kaffyn/Vectora/issues
  4. Include: error, stack trace, command used

Found an undocumented error here? Report it

Part of the Vectora ecosystem · Open Source (MIT)

External Linking

ConceptResourceLink
MCPModel Context Protocol Specificationmodelcontextprotocol.io/specification
MCP Go SDKGo SDK for MCP (mark3labs)github.com/mark3labs/mcp-go
Anthropic ClaudeClaude Documentationdocs.anthropic.com/
Voyage EmbeddingsVoyage Embeddings Documentationdocs.voyageai.com/docs/embeddings
Voyage RerankerVoyage Reranker APIdocs.voyageai.com/docs/reranker
RBACNIST Role-Based Access Control Standardcsrc.nist.gov/projects/rbac

Part of the Vectora ecosystem · Open Source (MIT) · Contributors