Federation & NATS Issues
Solutions for federation timeouts, saga failures, and NATS connectivity problems. Federation & NATS Troubleshooting
Find solutions to common FraiseQL issues organized by category.
By Problem Type:
By Symptom:
“Connection refused”
psql -c "SELECT 1"“Too many connections”
PGBOUNCER_MAX_POOL_SIZE“Connection timeout”
ping database.hostPGBOUNCER_CONNECTION_TIMEOUT“Invalid token”
jwt.decode(token)“Missing Authorization header”
Authorization: Bearer <token>“Insufficient permissions”
“Field validation failed”
“Type mismatch”
“Query returns null/empty but should have data”
SELECT COUNT(*) FROM table“Related objects are null”
“Mutation runs but data doesn’t change”
BEGIN; ... COMMIT;“Mutation succeeds but related data unchanged”
“Queries started slow suddenly”
df -hANALYZE“Intermittent slow queries”
“Container won’t start”
docker logs <container>docker exec <container> envdocker network ls“Connection to database fails”
docker psdocker network inspect <network>“Pod won’t start (CrashLoopBackOff)”
kubectl logs <pod>kubectl describe pod <pod>“Service unreachable”
kubectl get svckubectl get endpointskubectl port-forward svc/fraiseql 8000:8000See AWS Troubleshooting for ECS, Fargate, and RDS-specific issues.
See GCP Troubleshooting for Cloud Run and Cloud SQL-specific issues.
See Azure Troubleshooting for App Service and AKS-specific issues.
For database-specific troubleshooting, refer to the guides for your database engine. Common database issues include connection pool exhaustion, slow queries from missing indexes, and lock contention under high concurrency.
# Test API healthcurl http://localhost:8000/health/live
# Test readinesscurl http://localhost:8000/health/ready
# View logsdocker logs fraiseql
# Check environmentdocker exec fraiseql env | grep DATABASEpsql postgresql://user:pass@host/db -c "SELECT 1"pg_isready -h host -U usermysql -h host -u user -p -e "SELECT 1"sqlite3 fraiseql.db "SELECT 1"sqlcmd -S host -U user -P pass -Q "SELECT 1"# DNS resolutionnslookup database.example.com
# Network latencyping database.example.com
# Port connectivitync -zv database.example.com 5432
# Full connection testtimeout 5 bash -c 'cat </dev/null >/dev/tcp/host/5432' && echo "OK" || echo "FAIL"# Prometheus metricscurl http://localhost:9000/metrics | grep fraiseql
# Database connections (PostgreSQL)SELECT datname, count(*) FROM pg_stat_activity GROUP BY datname;
# Database connections (MySQL)SHOW PROCESSLIST;Check logs - Most issues are visible in logs
LOG_LEVEL=debug fraiseql runSearch documentation - Use Ctrl+F on this page
Check existing issues - GitHub issues might have solution
Test in isolation - Narrow down the problem
# Minimal reproductioncurl -X POST http://localhost:8000/graphql \ -H "Content-Type: application/json" \ -d '{"query": "{ __schema { types { name } } }"}'Discord (Real-time chat)
GitHub Discussions (Archived answers)
GitHub Issues (Bug reports)
Stack Overflow (Searchable)
fraiseqlWhen reporting an issue, include:
FraiseQL version
fraiseql --versionError message (full traceback)
Traceback (most recent call last): ...Minimal reproduction (simplified code that shows issue)
@fraiseql.querydef broken_query() -> User: passEnvironment
Logs (with LOG_LEVEL=debug)
[DEBUG] Loading schema...[ERROR] Failed to execute querydocker logs fraiseqlSELECT COUNT(*) FROM tableprintenv | grep FRAISEQL| Issue | Solution | Time |
|---|---|---|
| ”Connection refused” | Check database running | 2 min |
| ”Too many connections” | Increase connection pool | 5 min |
| Slow queries | Add database indexes | 10 min |
| ”Insufficient permissions” | Check user role | 5 min |
| Empty results | Check filtering/RLS | 5 min |
| Type mismatch | Check schema definition | 3 min |
| Pod crashes | Check resource limits | 5 min |
| High CPU | Check query complexity | 15 min |
Federation & NATS Issues
Solutions for federation timeouts, saga failures, and NATS connectivity problems. Federation & NATS Troubleshooting
Performance Guide
Diagnose slow queries, high latency, and database bottlenecks. Performance Issues
Deployment Guides
Platform-specific troubleshooting for Docker, AWS, GCP, and Azure. Deployment Overview
Error Handling
Best practices for handling errors gracefully in FraiseQL applications. Error Handling Guide