Troubleshooting
Common issues, error codes, and debugging guides.
Common Issues
GitHub webhooks not arriving
If DERs are not being created from pull requests, check the following:
- Verify the GitHub App is installed on the correct repositories. Go to GitHub Settings → Applications → MergeWhy and check repository access.
- Check webhook delivery logs at GitHub App Settings → Advanced → Recent Deliveries. Look for failed deliveries (non-200 status codes).
- Verify
GITHUB_WEBHOOK_SECRETmatches between your environment and the GitHub App configuration.
Database connection errors
If you see “connection refused” or “timeout” errors:
- Ensure
DATABASE_URLuses the pooled connection string (with connection pool parameters) - Check that PostgreSQL is accessible from the application container (network/firewall rules)
- For self-hosted, verify the
postgresservice is healthy in Docker Compose
OIDC authentication failures
- Verify the redirect URI in your IdP exactly matches
{NEXT_PUBLIC_APP_URL}/api/auth/callback/oidc - Check that
NEXTAUTH_SECRETis set (required for session encryption) - Ensure the OIDC issuer URL resolves to a valid
.well-known/openid-configurationendpoint
AI analysis not running
AI-powered analysis requires an LLM provider API key. If none is configured, MergeWhy falls back to rule-based analysis which checks:
- Description length and keyword presence
- Ticket reference patterns
- Review and approval counts
To enable AI analysis, set ANTHROPIC_API_KEY, OPENAI_API_KEY, or configure Ollama for local inference.
Error Codes
| Code | Meaning | Resolution |
|---|---|---|
| 401 | Invalid or missing API key | Check the Authorization header and key validity |
| 403 | Feature requires upgrade | Check your plan tier includes the requested feature |
| 429 | Rate limit exceeded | Wait and retry. Check X-RateLimit-Reset header |
| 500 | Internal server error | Check application logs. Report if persistent |
Getting Help
If you encounter an issue not covered here, reach out through one of these channels:
- Email: support@mergewhy.com
- GitHub Issues: github.com/mergewhy/mergewhy/issues
- Enterprise Support: Contact your account manager for priority assistance