Troubleshooting Knowledge Transformer

Learn how to diagnose and resolve issues with Knowledge Transformer.

The troubleshooting guidance covers connection problems, file handling errors, API authentication issues, and other operational challenges you might encounter. Each issue includes a problem description and step-by-step solutions. If you cannot resolve an issue using these procedures, check the API logs for additional diagnostic information or contact your system administrator for assistance.

API not running

Problem
Cannot connect to the API. The system displays a "connection refused" error.
Solutions
  1. Verify that the API is running:
    curl [your-api-url]/health
  2. Check your API URL configuration:
    zassist transform config show
  3. Update the API URL if needed:
    zassist transform config [new-api-url]

Configuration not persisting

Problem
The API URL configuration does not persist across terminal sessions.
Solutions
  1. Check the current configuration:
    zassist transform config show
  2. Re-configure the API URL:
    zassist transform config http://localhost:8080
  3. Verify the configuration file exists at ~/.zassist/config.json.
  4. Manually override the API URL for the current session:
    export TRANSFORM_API_URL="http://localhost:8000"

"Unknown command" error

Problem
The CLI does not recognize the command you entered.
Solutions
  1. Use transform, not upload.
  2. When running from the cli/ directory, include the ./ prefix:
    ./zassist transform document.pdf ./knowledge
  3. If installed to your system PATH, run without the ./ prefix:
    zassist transform document.pdf ./knowledge
Examples
Correct usage:
./zassist transform document.pdf ./knowledge
Incorrect usage:
zassist upload document.pdf

"File not found" error

Problem
The specified file does not exist.
Solutions
  1. Check the file path is correct.
  2. Use absolute paths or ensure that you are in the correct directory.
  3. Verify file permissions.

Processing timeout

Problem
The transformation process times out before completing.
Solutions
  1. Increase the timeout value using the --timeout flag (default is 30 minutes):
    zassist transform large-file.vtt ./knowledge --timeout 60m
  2. For very large files, use a longer timeout:
    zassist transform huge-file.vtt ./knowledge -t 2h

"Failed to create context blob" error

Problem
Cannot create the ZIP file.
Solutions
  1. Check disk space.
  2. Verify write permissions in the current directory.
  3. Ensure input files are accessible.

API returns error

Problem
API rejects the request.
Solutions
  1. Check API logs for details.
  2. Verify the context blob structure (should have input/ and knowledge/ directories).
  3. Check API documentation at [your-api-url]/docs

"401 Unauthorized" or "403 Forbidden" error

Problem
API key authentication failed.
Solutions
  1. Check if the API requires authentication (look for SECURE MODE ENABLED in API logs).
  2. Set the API key:
    export TRANSFORM_API_KEY=[your-api-key-here]
  3. Verify the API key is correct.
  4. Ensure the API key environment variable is set in your current session.
  5. Check if the API key matches the one configured on the API server.
Example
Set the API key:
export TRANSFORM_API_KEY=[your-api-key-here]
Verify it is set:
echo $TRANSFORM_API_KEY
Run the transform command:
zassist transform document.vtt ./knowledge

"Unsupported file type" error

Problem
The CLI reports that one or more files have unsupported file types.
Solutions
  1. Check the list of supported file formats displayed in the error message.
  2. Remove unsupported files from your input directory.
  3. Convert unsupported files to a supported format. For more information about supported formats, see Supported file formats.
Example
Error message:
❌ Error: Found 1 unsupported file(s)

Unsupported files:
  • spreadsheet.xlsx (.xlsx not supported)

Supported formats: .docx, .md, .mp4, .pdf, .pptx, .txt, .vtt

Please remove or convert unsupported files and try again.