Skip to main content
This guide walks through troubleshooting for common CLI setup and development issues.

Installation Issues

”Permission denied” during installation

“inworld-runtime: command not found” after installation

Node.js version issues

Authentication Issues

Login opens browser but fails

”Authentication Error” on commands

Multiple workspaces confusion

Local Development Issues

”Graph compilation failed”

“Module not found” errors

inworld-runtime serve not starting

inworld-runtime run hangs or times out

Project Issues

inworld-runtime init creates empty project

”Dependencies not installed” after inworld-runtime init

Template cache issues or outdated template

Note: The template is cached for 24 hours. Use --force to bypass the cache and download the latest version from GitHub.

Graph shows unexpected behavior

TTS Issues

”Voice not found” error

TTS synthesis fails

Production Issues

Deployment Problems

Problem: “Graph deployment fails”
Problem: “Endpoint not responding after deployment” Debug Steps:
  1. Check deployment status: inworld-runtime deploy ./graph.ts --info
  2. Verify API key is correct: inworld-runtime auth status
  3. Test with simple input: curl -X POST [endpoint-url] -H "Authorization: Bearer [api-key]" -d '{"input": "test"}'
  4. Check Portal logs for errors: Navigate to Portal Logs
Problem: “High latency after deployment” Optimization Steps:
  1. Review graph complexity with visualization
  2. Optimize LLM calls (reduce temperature, limit tokens)
  3. Remove unnecessary nodes from execution path
  4. Use streaming responses where possible
  5. Monitor performance in Portal Dashboards
Problem: “Metrics/traces not appearing in Portal” Solutions:
  1. Verify API key is set: echo $INWORLD_API_KEY
  2. Check telemetry is enabled (default: ON)
  3. Wait 1-2 minutes for data to appear
  4. Check Portal time range includes execution time
Problem: “Graph always uses local config instead of variants” Check these issues:
  1. Missing enableRemoteConfig: Set enableRemoteConfig: true in GraphBuilder
  2. Graph not registered: Register graph ID in Portal Graph Registry
  3. No active rules: Enable targeting rules in Portal
  4. Missing API key: Ensure INWORLD_API_KEY environment variable is set

Experiment Issues

Problem: “All users getting the same variant despite traffic splits” Causes & Solutions:
  1. Missing enableRemoteConfig
  2. Missing or Invalid UserContext
  3. Graph Not Registered in Portal
    • Verify graph ID matches between CLI and Portal
    • Check Graph Registry shows your graph as “Registered”
    • Ensure variants are uploaded and active
  4. Rules Disabled in Portal
    • Check targeting rules are Enabled in Graph Registry
    • Verify traffic distribution adds up to 100%
    • Confirm rule filters match your user attributes
Problem: “Users not getting expected variant distribution” Debug Steps:
  1. Check UserContext: Ensure unique targeting keys are passed
  2. Verify Rules: Confirm targeting rules are enabled in Portal
  3. Traffic Distribution: Verify percentages add up to 100%
  4. Rule Filters: Ensure user attributes match rule criteria
Problem: “Variant performance differs significantly” Debug Steps:
  1. Check variant complexity: Use inworld-runtime graph visualize for each variant
  2. Compare configurations: Review model parameters, prompt lengths, node counts
  3. Monitor metrics: Use Portal dashboards to compare P99 latency across variants
  4. Test individually: Run each variant independently to isolate performance issues

Quick Diagnostic Commands

When things go wrong, run these commands to gather diagnostic info:

Environment Setup

Set up development environment variables

Project-specific environment

Getting More Help

CLI Help Commands

Debug Mode

Before Asking for Help

When reporting issues, please include:
  1. CLI Version: inworld-runtime --version
  2. Node Version: node --version
  3. Operating System: uname -a (Linux/macOS) or Windows version
  4. Command that failed: The exact command you ran
  5. Error message: Full error output
  6. Authentication status: inworld-runtime status
This information helps diagnose issues quickly and effectively.