VerityNgn Troubleshooting Guide
Solutions to common issues and debugging strategies.Quick Diagnostics
Run Diagnostic Script
- ✅ Google Cloud project configuration
- ✅ Vertex AI authentication
- ✅ Service account setup
- ✅ API key configuration
Authentication Issues
Error: “Could not automatically determine credentials”
Symptoms:- No service account JSON file
GOOGLE_APPLICATION_CREDENTIALSnot set- No application default credentials
Error: “Reauthentication is needed”
Symptoms:Error: “Permission denied for Vertex AI”
Symptoms:Processing Issues
Issue: “Process seems hung / no progress”
Symptoms:- No log output for 10+ minutes
- Last message: “Processing segment…”
- Terminal appears frozen
- 8-12 minutes of no output during segment processing
- Multimodal analysis is compute-intensive
- No progress bars during LLM processing
-
Check timestamp - Has it been < 15 minutes?
- If YES: Wait - this is normal!
- If NO: May be hung, proceed to debugging
-
Look for last log message:
- If you see this: Wait 12 minutes before worrying
-
Check expected time:
- 33-minute video: ~10 minutes processing time
- 60-minute video: ~20 minutes processing time
Issue: “Empty response from segmented Vertex YouTube analysis”
Symptoms:- Segment too large for context window
- Network timeout
- API rate limiting
- Invalid video URL
Issue: Slow processing (> 30 minutes for 33-minute video)
Expected times (v2.0):- 10-minute video: 8-12 minutes
- 33-minute video: 8-12 minutes
- 60-minute video: 16-24 minutes
Dependency Issues
Error: “ModuleNotFoundError: No module named ‘psutil’”
Solution:Error: “ModuleNotFoundError: No module named ‘isodate’”
Solution:Error: “ModuleNotFoundError: No module named ‘dotenv’”
Solution:Error: “ModuleNotFoundError: No module named ‘verityngn…’”
Cause: Missing internal modules or incorrect Python path Solution:Video Download Issues
Error: yt-dlp cache permission error
Symptoms:Error: Video unavailable
Symptoms:- Private video
- Age-restricted video
- Region-locked video
- Invalid URL
API Key Issues
Warning: “Google Search API key or CSE ID not configured”
Impact: Limited evidence verification capabilities Severity: ⚠️ Low (optional feature) Solution (optional):Warning: “YouTube API key not configured”
Impact: Uses yt-dlp fallback (slower) Severity: ⚠️ Low (automatic fallback) Solution (optional):Debugging Strategies
Enable Verbose Logging
Use VS Code Debugger
-
Open
.vscode/launch.json(already configured) - Set breakpoints in code
-
Run debugger:
- Press F5
- Select “Debug: Test TL Video”
- Step through execution
-
Inspect variables:
- Check
video_duration_seconds - Check
SEGMENT_DURATION_SECONDS - Check API responses
- Check
Test Components Individually
Test segmentation only:Check Environment
Performance Optimization
Reduce API Costs
Use intelligent segmentation (automatic):- 33-minute video: 1 API call instead of 7 (86% reduction)
- 60-minute video: 2 API calls instead of 12 (83% reduction)
Speed Up Processing
1. Use Gemini 2.5 Flash (default):Common Error Messages
”json_lib is not defined”
Status: ✅ Fixed in current version If you see this: Update to latest version”cannot access local variable ‘json_lib’”
Status: ✅ Fixed in current version If you see this: Update to latest version”404 Not Found” from Vertex AI
Cause: Model name incorrect or not available in region Solution:Getting Help
Check Documentation
- Setup Guide - Authentication and installation
- Quick Start - First-time usage
- Architecture - Technical details
- Testing Guide - Testing and validation
Collect Debug Information
Before reporting issues, collect:Report Issues
When reporting issues, include:- Error message (full traceback)
- Steps to reproduce
- Expected vs actual behavior
- Environment information (from above)
- Video URL (if applicable and public)
Last Updated: October 28, 2025
Version: 2.0
