Skip to main content
This guide covers common issues you may encounter when using Superserve and how to resolve them.

Authentication Issues

Cause: You haven’t logged in or your session expired.Solution:
superserve login
Follow the prompts to authenticate via the browser.
Symptoms:
  • Browser doesn’t open
  • Device code doesn’t work
  • “Authorization pending” never completes
Solutions:
  1. Check your internet connection
  2. Try logging in again:
    superserve logout
    superserve login
    
  3. Manually open the verification URL if the browser doesn’t open automatically:
    Visit: https://console.superserve.ai/device?code=ABCD-EFGH
    
  4. Check for firewall/proxy issues that may block access to api.superserve.ai

Deployment Issues

Cause: Missing name field in superserve.yaml.Solution:Add the name field:
superserve.yaml
name: my-agent
command: python agent.py
Cause: Agent name doesn’t follow naming rules.Rules:
  • Must start with a lowercase letter
  • Can only contain lowercase letters, numbers, and hyphens
  • No special characters or spaces
Solution:
# ❌ Invalid
name: My-Agent
name: 123-agent
name: agent_name

# ✅ Valid
name: my-agent
name: agent-123
name: customer-support
Cause: Dependency installation is taking longer than expected or has failed.Solutions:
  1. Wait up to 5 minutes for complex dependency installations
  2. Check agent status:
    superserve agents get my-agent
    
  3. If status is FAILED, check the error message and fix your dependencies:
    # Fix requirements.txt or package.json
    # Then redeploy
    superserve deploy
    
Common causes:
  • Invalid package names in requirements.txt or package.json
  • Incompatible package versions
  • Package not available in PyPI or npm
Solutions:
  1. Check the error message:
    superserve agents get my-agent
    
    Look for the Deps Error field.
  2. Verify package names and versions in your dependency file:
    requirements.txt
    # ❌ Wrong
    antrhopic
    
    # ✅ Correct
    anthropic
    
  3. Test locally before deploying:
    pip install -r requirements.txt
    
  4. Redeploy after fixing:
    superserve deploy
    
Cause: The file specified in zero-config deploy doesn’t exist.Solution:Verify the file exists:
# ❌ Wrong
superserve deploy aget.py  # typo

# ✅ Correct
superserve deploy agent.py
Or use the full path:
superserve deploy src/agent.py

Secret Management Issues

Cause: Agent requires secrets that haven’t been set.Solution:Set the required secrets:
superserve secrets set my-agent ANTHROPIC_API_KEY=sk-ant-...
Check which secrets are required:
superserve agents get my-agent
Look for the “Required Secrets” section.
Symptoms:
  • KeyError: 'ANTHROPIC_API_KEY' in Python
  • undefined in JavaScript/TypeScript
Solutions:
  1. Verify the secret is set:
    superserve secrets list my-agent
    
  2. Check the key name matches exactly (case-sensitive):
    # ❌ Wrong
    api_key = os.environ["anthropic_api_key"]
    
    # ✅ Correct
    api_key = os.environ["ANTHROPIC_API_KEY"]
    
  3. Set the secret if missing:
    superserve secrets set my-agent ANTHROPIC_API_KEY=sk-ant-...
    
Cause: Secret command is missing the = separator.Solution:
# ❌ Wrong
superserve secrets set my-agent ANTHROPIC_API_KEY sk-ant-...

# ✅ Correct
superserve secrets set my-agent ANTHROPIC_API_KEY=sk-ant-...

Session Issues

Cause: Session doesn’t exist or has been deleted.Solutions:
  1. List available sessions:
    superserve sessions list
    
  2. Check if the session timed out (shows as status TIMEOUT)
  3. Start a new session:
    superserve run my-agent
    
Cause: The session ID prefix matches multiple sessions.Example:
Error: Ambiguous ID 'a1' — matches: a1b2c3d4e5f6, a1f9e8d7c6b5
Solution:Provide more characters:
# ❌ Ambiguous
superserve sessions resume a1

# ✅ Unique
superserve sessions resume a1b2
Cause: Session was idle for more than 29 minutes.What happens:
  • Session status changes to TIMEOUT
  • Workspace files are destroyed
  • Cannot resume the session
Solution:Start a new session:
superserve run my-agent
Prevention:For long-running tasks, send periodic messages to keep the session active.
Cause: The session was explicitly ended or timed out.Solution:You cannot resume ended sessions. Start a new one:
superserve run my-agent

Runtime Issues

Diagnostic steps:
  1. Check agent status:
    superserve agents get my-agent
    
    Ensure status is READY.
  2. Check required secrets are set:
    superserve agents get my-agent
    
    Look for “Required Secrets” vs “Configured Secrets”.
  3. Try a simple test:
    superserve run my-agent "Hello" --single
    
  4. Check session status:
    superserve sessions list --agent my-agent
    
Common causes:
  • Large dependencies still loading
  • Complex prompt or long conversation history
  • Network latency
Solutions:
  1. Check deployment status:
    superserve agents get my-agent
    
    If status is DEPLOYING, wait for it to become READY.
  2. Start a fresh session to reduce context size:
    superserve run my-agent
    
  3. Use simpler prompts for testing.
Symptoms:
ModuleNotFoundError: No module named 'anthropic'
Causes:
  • Missing dependency in requirements.txt or package.json
  • Dependency install failed
Solutions:
  1. Add the missing package:
    requirements.txt
    anthropic
    
  2. Redeploy:
    superserve deploy
    
  3. Verify dependency installation:
    superserve agents get my-agent
    

Configuration Issues

Cause: Syntax error in YAML file.Common mistakes:
# ❌ Wrong (missing space after colon)
name:my-agent

# ✅ Correct
name: my-agent

# ❌ Wrong (inconsistent indentation)
secrets:
  - ANTHROPIC_API_KEY
   - DATABASE_URL

# ✅ Correct (consistent indentation)
secrets:
  - ANTHROPIC_API_KEY
  - DATABASE_URL
Solution:Validate your YAML with an online validator or:
python -c "import yaml; yaml.safe_load(open('superserve.yaml'))"
Cause: Ignore pattern doesn’t match the file structure.How ignore works:Patterns match against relative paths from project root:
ignore:
  - .venv              # Matches .venv/ directory
  - tests              # Matches tests/ directory
  - data/cache         # Matches data/cache/ directory
Note: These are always ignored automatically:
  • __pycache__, .git, node_modules, .venv, venv
  • Files starting with .env

Network and Connection Issues

Cause: Network connection issue or API is down.Solutions:
  1. Check your internet connection
  2. Verify API access:
    curl https://api.superserve.ai/health
    
  3. Check firewall/proxy settings that may block:
    • api.superserve.ai
    • console.superserve.ai
  4. Try again - may be a temporary network issue
Cause: Request took longer than 30 seconds.Common scenarios:
  • Large file upload during deploy
  • Slow network connection
  • API temporarily overloaded
Solutions:
  1. Reduce deployment size with ignore patterns:
    ignore:
      - tests
      - docs
      - data
    
  2. Try again - may succeed on retry
  3. Check network connection speed

Best Practices to Avoid Issues

Before deploying:
  1. Test your agent locally
  2. Verify all dependencies install correctly
  3. Check superserve.yaml syntax
  4. Use .env.example to document required secrets
  5. Test with a simple prompt first
Regular maintenance:
  1. Clean up old sessions: superserve sessions list --status timeout
  2. Monitor deployment status after updates
  3. Rotate secrets periodically
  4. Keep dependencies up to date
  5. Remove unused agents to reduce clutter

Getting Help

If you’re still experiencing issues:
  1. Check the documentation:
  2. Search existing issues: Visit the GitHub repository
  3. Join the Discord community: Get help from other users at discord.gg/utftfhSK
  4. Report a bug: If you’ve found a bug, open an issue

Common Error Messages Reference

ErrorCauseSolution
Not authenticatedNo auth tokensuperserve login
Agent not foundInvalid agent name/IDCheck with agents list
Missing required secretSecret not setsecrets set AGENT KEY=VALUE
Dependency install failedInvalid packageFix requirements.txt
Session not foundInvalid session IDCheck with sessions list
Invalid YAMLSyntax errorValidate YAML syntax
Ambiguous IDID prefix matches multipleUse longer prefix
Request timed outNetwork/size issueRetry or reduce size

Next Steps

Build docs developers (and LLMs) love