Skip to main content
This guide covers common issues you may encounter when using the Kubiya SDK and their solutions.

Authentication Issues

Invalid API Key

Problem: Getting authentication errors even with correct API key. Symptoms:
Solutions:
  1. Verify the API key is correct and not expired
  2. Check the key hasn’t been revoked in the dashboard
  3. Ensure no extra whitespace in the key value
  4. Verify you’re using the correct organization’s key

Environment Variable Not Set

Problem: API key environment variable not being read. Solutions:
  1. Verify environment variable name is exactly KUBIYA_API_KEY
  2. Restart your terminal/IDE after setting the variable
  3. Use .env file with python-dotenv:

Connection Issues

Connection Timeout

Problem: Requests timing out. Symptoms:
Solutions:
  1. Increase timeout for long-running operations:
  1. Reduce complexity of operations:

Connection Refused

Problem: Unable to connect to Control Plane API. Solutions:
  1. Check your network connectivity
  2. Verify firewall settings allow HTTPS to control-plane.kubiya.ai
  3. Check if you’re behind a proxy:

Data Issues

Empty Results

Problem: Search or recall operations return no results. Solutions:
  1. Verify data exists in the dataset:
  1. Wait for data processing to complete:
  1. Broaden your search query:

Low Relevance Scores

Problem: Semantic search returns results with low similarity scores. Solutions:
  1. Filter results by minimum score:
  1. Use intelligent search instead for complex queries:

Ingestion Issues

Duplicate Node Errors

Problem: Ingestion fails with duplicate node errors. Solution: Use appropriate duplicate handling:

Batch Import Failures

Problem: Batch ingestion fails partially. Solutions:
  1. Use non-transactional mode:
  1. Reduce batch size:

Performance Issues

Slow Responses

Problem: API calls taking longer than expected. Solutions:
  1. Use batch operations:
  1. Use async operations for large data:
  1. Implement caching:

High Memory Usage

Problem: Application using too much memory. Solutions:
  1. Process data in chunks:
  1. Clear sensitive data from memory:

Import Errors

Module Not Found

Problem: ModuleNotFoundError: No module named 'kubiya' Solutions:
  1. Verify SDK is installed:
  1. Install SDK:
  1. Check you’re using the correct Python environment:

Import Errors for Exceptions

Problem: Cannot import exception classes. Solution: Use correct import paths:

SDK Version Issues

Deprecated Methods

Problem: Methods or parameters not working as documented. Solutions:
  1. Check SDK version:
  1. Upgrade to latest version:
  1. Check breaking changes in release notes

Getting Help

If you’re still experiencing issues:
  1. Check SDK Version: Ensure you’re using the latest version
  2. Review Documentation: Check the specific service documentation
  3. Enable Debug Logging:
  1. Check Status: Verify Control Plane API status
  2. Contact Support: Reach out to Kubiya support with:
    • SDK version
    • Error message
    • Minimal code to reproduce
    • Expected vs actual behavior

Common Error Messages

Next Steps

Error Handling

Learn about exception handling

Best Practices

SDK best practices guide

Examples

Working code examples

API Reference

Complete API documentation