Overview
This guide covers common issues you might encounter when running Base Audit Bot and their solutions.Connection Issues
Bot Not Connecting to Base RPC
Symptoms
Symptoms
- Bot fails to start with RPC connection errors
- Logs show “Connection refused” or “Timeout” errors
- Cannot fetch block information
Solutions
Solutions
Verify RPC URL
Check
BASE_RPC_URL in .env:The bot validates that the URL starts with
http or https (via config.py:94).API Issues
Twitter Posting Fails
Symptoms
Symptoms
- Logs show “Twitter posting failed”
- Authentication errors
- Rate limit errors
Solutions
Solutions
Check app permissions
Your Twitter app needs read and write permissions:
- Go to https://developer.twitter.com/
- Select your app
- Navigate to Settings > User authentication settings
- Ensure OAuth 1.0a is enabled
- Verify Read and write permissions are selected
If you changed permissions, you must regenerate access tokens.
Check rate limits
Twitter API has rate limits (from
README.md:268):- Tweet posting: 300 tweets per 3 hours
- DM reading: 15 requests per 15 minutes
Basescan API Errors
Symptoms
Symptoms
- Cannot fetch verified contract source code
- “Invalid API key” errors
- Rate limit exceeded
Anthropic API Errors
Symptoms
Symptoms
- Audits not running
- “Invalid API key” errors
- Rate limit or quota exceeded
Solutions
Solutions
Check account credits
Log into Anthropic console and verify:
- API key is active
- Account has credits
- No rate limit restrictions
Audit Issues
Audits Not Running
Symptoms
Symptoms
- Contracts detected but not audited
- “Skipping audit” messages in logs
- No audit results
Solutions
Solutions
Check contract has verified source
Only contracts with verified source code on Basescan can be audited (from Look for green checkmark indicating verified contract.
README.md:269).Verify on Basescan:Check contract size
Contracts smaller than
MIN_CONTRACT_SIZE are skipped:This filters out very small contracts that are unlikely to be interesting.
GitHub Repository Not Found
Symptoms
Symptoms
- Cannot find GitHub repository for contract
- “No repository found” messages
Solutions
Solutions
Contract source on Basescan might not include GitHub links.The bot searches for:
- GitHub URLs in contract comments
- Repository links in verified source metadata
- Organization/repository patterns
Not all verified contracts have associated GitHub repositories. This is expected behavior.
Webhook Issues
Webhook Not Receiving Events
Symptoms
Symptoms
- No webhook events in logs
- GitHub shows delivery failures
- No tweets about repository updates
Solutions
Solutions
Verify webhook URL is accessible
Test from external location:Should return 405 (Method Not Allowed) for GET requests.
Check webhook secret matches
Verify
WEBHOOK_SECRET in .env matches GitHub webhook configuration (from README.md:298).Verify GitHub webhook configuration
In GitHub repository settings:
- Go to Settings > Webhooks
- Click on your webhook
- Check Recent Deliveries
- Look for errors or failed deliveries
- SSL certificate errors
- Connection timeouts
- HTTP errors (4xx, 5xx)
Signature Verification Failing
Symptoms
Symptoms
- Logs show “Invalid webhook signature”
- GitHub deliveries succeed but bot rejects them
Docker Issues
Container Exits Immediately
Symptoms
Symptoms
- Container starts then exits
docker-compose psshows “Exit 1”
Health Check Failing
Symptoms
Symptoms
- Container status shows “unhealthy”
- Health check endpoint not responding
Volume Permission Issues
Symptoms
Symptoms
- “Permission denied” errors
- Cannot write to database
- Log file errors
Database Issues
Database Locked
Symptoms
Symptoms
- “Database is locked” errors
- Write operations failing
Database Corruption
Symptoms
Symptoms
- “Database disk image is malformed” errors
- Query failures
Configuration Issues
Missing Required Environment Variables
Symptoms
Symptoms
- Bot fails to start
- “Missing required environment variables” error
Invalid Configuration Values
Symptoms
Symptoms
- Bot exits with validation errors
- “ValueError” in logs
Performance Issues
High Memory Usage
Symptoms
Symptoms
- Container using excessive RAM
- System slowdown
High Disk Usage
Symptoms
Symptoms
- Disk space filling up
- Large database or log files
Getting Help
Check Logs
Always check logs first:
Enable Debug Logging
Set in
.env:Test Configuration
Validate config:
Check Health
Test health endpoint: