Troubleshooting
Quick solutions to common issues.Authentication Errors
”401 Unauthorized”
Cause: Missing or invalid API key. Fix:”403 Forbidden”
Cause: API key has been revoked or rate limited. Fix: Check your key status or generate a new one:Rate Limiting
”429 Too Many Requests”
Cause: Exceeded rate limits (1000/day or 100/minute). Fix:- Check current usage:
- Implement exponential backoff
- Batch attestations if possible
- Contact us for higher limits
Verification Failures
”Signature verification failed”
Causes:- Attestation was tampered with
- Wrong public key
- Data corruption
- Fetch fresh copy from API:
- Verify you’re using the correct public key:
- If using cached data, clear cache and retry
”Attestation not found”
Cause: Invalid ID or attestation doesn’t exist. Fix: Double-check the attestation ID format (UUID).SDK Issues
Python: “ModuleNotFoundError: No module named ‘treeship_sdk’”
Fix:treeship-sdk (with hyphen), but import is treeship_sdk (with underscore).
Python: “Connection refused”
Cause: Network issue or wrong API URL. Fix:CLI: “command not found: treeship”
Fix:CLI: “TREESHIP_API_KEY not set”
Fix:Network Issues
Timeouts
Cause: Network latency or firewall issues. Fix:- Check API status:
curl https://api.treeship.dev/health - Increase timeout in your client
- Check firewall allows HTTPS to api.treeship.dev
SSL Certificate Errors
Cause: Outdated CA certificates or MITM proxy. Fix:- Update your system’s CA certificates
- If behind corporate proxy, add proxy CA to trust store
- Don’t disable SSL verification in production
Self-Hosting Issues
”No signing key configured”
Cause: MissingTREESHIP_SIGNING_KEY environment variable.
Fix: Generate and set a key:
Database Connection Failed
Cause: SQLite file permissions or PostgreSQL connection string. Fix:Still Stuck?
- Check API status
- Review FAQ for common questions
- Search GitHub issues
- Open a new issue with:
- What you’re trying to do
- Error messages (full output)
- Your environment (OS, SDK version)