Skip to main content

Troubleshooting

This guide covers common issues you might encounter when using the ElizaOS 0G plugin and their solutions.

File Access Errors

File Not Found

Problem: Plugin cannot locate the specified file.
Solutions:
  1. Check file path: Verify the file exists at the specified location
  2. Use absolute paths: Provide full file path to avoid ambiguity
  3. Check current directory: Ensure you’re in the correct working directory

Permission Denied

Problem: Insufficient permissions to read the file.
Solutions:
  1. Check file permissions:
  2. Fix permissions:
  3. Run with appropriate user: Ensure the process has read access

Invalid Path Format

Problem: File path contains invalid characters or format. Solutions:
  1. Escape special characters:
  2. Use quotes for paths with spaces:

Configuration Issues

Missing Environment Variables

Problem: Required configuration not set.
Solutions:
  1. Create .env file:
  2. Load environment variables:
  3. Verify variables are loaded:

Invalid RPC Endpoints

Problem: Cannot connect to 0G network endpoints.
Solutions:
  1. Test endpoint connectivity:
  2. Check network connectivity:
  3. Use alternative endpoints: Try different RPC providers if available
  4. Check firewall settings: Ensure outbound connections are allowed

Private Key Issues

Problem: Invalid private key format or insufficient permissions.
Solutions:
  1. Verify private key format:
  2. Check account balance:
  3. Ensure sufficient gas: Account needs tokens for transaction fees

Network and Upload Issues

Upload Timeout

Problem: File upload takes too long and times out.
Solutions:
  1. Reduce file size:
  2. Check network speed: Ensure stable internet connection
  3. Increase timeout: Configure longer timeout for large files
  4. Split large files: Break into smaller chunks if possible

Transaction Failed

Problem: Blockchain transaction fails during upload.
Solutions:
  1. Check account balance: Ensure sufficient tokens for gas fees
  2. Increase gas limit:
  3. Check network congestion: Wait for lower network activity
  4. Verify contract address: Ensure Flow contract address is correct

IPFS Gateway Issues

Problem: Cannot access uploaded files through IPFS gateway. Solutions:
  1. Try alternative gateways:
  2. Wait for propagation: IPFS content may take time to propagate
  3. Check file hash: Verify the IPFS hash is correct

Development Issues

Plugin Not Loading

Problem: ElizaOS doesn’t recognize the 0G plugin. Solutions:
  1. Verify installation:
  2. Check import statement:
  3. Register plugin correctly:

TypeScript Errors

Problem: Type definition conflicts or missing types. Solutions:
  1. Update TypeScript:
  2. Install type definitions:
  3. Check tsconfig.json:

Performance Optimization

Slow Upload Speeds

Solutions:
  1. Compress files before upload:
  2. Use parallel uploads for multiple files
  3. Implement retry logic for failed uploads
  4. Cache frequently accessed files

Memory Issues

Solutions:
  1. Stream large files instead of loading into memory
  2. Implement file size limits:
  3. Clean up temporary files after upload

Getting Help

If you continue to experience issues:
  1. Check the logs: Enable debug logging for detailed error information
  2. Community Support:
  3. Documentation:
  4. Contact Support: support@0g.ai

Debug Mode

Enable debug logging to get more detailed error information:
This will provide detailed logs of plugin operations and help identify issues.