Skip to main content

Troubleshooting Scenarios

This guide provides step-by-step solutions for common issues you may encounter when using DeepWikiOpen.

1. API Key Validation Issues

Scenario: “Invalid API key” error when starting the application

Symptoms

Debugging Steps

  1. Verify API key format
  2. Check environment file
  3. Test API key directly

Solutions

2. Connection Problems (CORS, Network)

Scenario: CORS errors when accessing the API

Symptoms

Debugging Steps

  1. Check server CORS configuration
  2. Verify network connectivity
  3. Inspect browser network tab
    • Open Developer Tools → Network tab
    • Look for preflight OPTIONS requests
    • Check response headers for CORS headers

Solutions

3. Large Repository Handling

Scenario: Application crashes when analyzing large repositories

Symptoms

Debugging Steps

  1. Monitor memory usage
  2. Profile repository size

Solutions

4. Memory and Performance Issues

Scenario: Slow response times and high memory usage

Debugging Steps

  1. Profile application performance
  2. Monitor resource usage

Solutions

5. Docker Container Problems

Scenario: Container fails to start or crashes immediately

Symptoms

Debugging Steps

  1. Check container logs
  2. Inspect container

Solutions

6. Model Selection Errors

Scenario: “Model not found” or incorrect model responses

Symptoms

Debugging Steps

  1. List available models
  2. Verify model configuration

Solutions

7. Private Repository Access Issues

Scenario: Cannot access private GitHub repositories

Symptoms

Debugging Steps

  1. Verify GitHub token
  2. Check token scopes

Solutions

8. WebSocket Connection Failures

Scenario: Real-time updates not working, WebSocket disconnects

Symptoms

Debugging Steps

  1. Test WebSocket endpoint
  2. Check server WebSocket implementation

Solutions

9. Rate Limiting Scenarios

Scenario: API rate limit exceeded errors

Symptoms

Debugging Steps

  1. Monitor rate limit headers

Solutions

10. Common Error Messages and Solutions

Error: “Context length exceeded”

Solution

Error: “WebContainer initialization failed”

Solution

Error: “Database connection timeout”

Solution

Best Practices for Troubleshooting

  1. Enable verbose logging
  2. Use health check endpoints
  3. Monitor system resources
  4. Implement comprehensive error handling

Getting Help

If you encounter issues not covered here:
  1. Check the GitHub Issues
  2. Enable debug logging and collect logs
  3. Provide system information:
  4. Include minimal reproduction steps
  5. Join our Discord community for real-time support