Prompt file imported from RobertMLayne/openai-url-harvester (
.github/prompts/crawl-debug.prompt.md). Copyright stays with the author.
Crawl Debugging Workflow
Task
Diagnose and resolve crawl issues with the openai-url-harvester.
Diagnostic Steps
- Check error logs: Look for patterns in failed requests
- Validate robots.txt: Ensure robots cache is working correctly
- Rate limiting analysis: Check if QPS limits are being respected
- Content type filtering: Verify only HTML/XHTML is being processed
- URL normalization: Check for malformed or problematic URLs
Common Issues
- High error rates: Usually robots.txt 5xx or rate limiting
- Missing URLs: Check allowlist domain matching
- Slow crawls: Verify aiolimiter configuration
- Memory issues: Check response size limits (60KB cap)
Resolution Process
- Identify root cause
- Propose minimal fix preserving async patterns
- Suggest test case to prevent regression
- Wait for approval before implementing
Commands for Diagnosis
# Dry run for testing
.\.venv\Scripts\python.exe -m openai_url_harvester crawl --dry-run --start "https://example.com"
# Verbose logging
.\.venv\Scripts\python.exe -m openai_url_harvester crawl --verbose --max-pages 10