Common issues and solutions for brief generation, API errors, connection problems, and CI/CD integration.
If you encounter issues not covered here, check the following resources:
audit_log table for detailed event historyConnection test fails immediately with authentication error.
Causes:
Solutions:
Build: Read scope
and test again.Connection fails with 404 error for workspace.
Causes:
Solutions:
https://dev.azure.com/YOUR-ORG-NAMEcurl -u :YOUR-PAT https://dev.azure.com/YOUR-ORG/_apis/projects?api-version=7.1Connection succeeds but no projects or pipelines appear in dropdowns.
Causes:
Build: Read or Code: Read permissionsSolutions:
Build: Read and Code: ReadConnection stops working after working previously.
Causes:
Solutions:
API request fails with 401 status code.
Causes:
Solutions:
Authorization: Bearer YOUR-API-KEYcurl -H "Authorization: Bearer YOUR-KEY" https://api.deploybrief.com/api/briefsAPI key valid, but request denied.
Causes:
Solutions:
briefs:write for POST)Rate limit exceeded.
Causes:
Solutions:
Retry-After header value (seconds)Example: Exponential Backoff
async function generateBriefWithRetry() {
let delay = 1000; // Start with 1 second
for (let i = 0; i < 5; i++) {
const response = await fetch('/api/briefs/generate', { ...});
if (response.status !== 429) return response;
await new Promise(r => setTimeout(r, delay));
delay *= 2; // Double delay each retry
}
}Brief generation fails when selecting a pipeline.
Causes:
Solutions:
Build: Read for the
projectBrief generated but contains placeholder values or incorrect data.
Causes:
Solutions:
{{pipeline.name}} - Pipeline name{{build.number}} - Build number{{build.result}} - Success/Failed/etc.Cannot find expected template or preset when generating brief.
Causes:
Solutions:
GET /api/templates
GET /api/presetsWorkflow fails to authenticate with DeployBrief API.
Solutions:
DEPLOYBRIEF_API_KEY (case-sensitive)env:
DEPLOYBRIEF_API_KEY: $${{{ secrets.DEPLOYBRIEF_API_KEY }}}Pipeline hangs or times out when calling DeployBrief API.
Causes:
Solutions:
Application cannot reach PostgreSQL database.
Solutions:
# Linux
sudo systemctl status postgresql
# macOS
brew services list
# Windows
Check Services appnetstat -an | grep 5432psql -U deploybrief -d deploybrief -h localhostApplication reports missing tables.
Solutions:
psql -U deploybrief -d deploybrief -f src/DeployBrief.Infrastructure/Database/schema.sqlscripts/migrations/ for updatespsql -U deploybrief -d deploybrief -c "\dt"Possible causes:
Optimizations:
Use these commands to diagnose issues:
# Check database connection
psql -U deploybrief -d deploybrief -c "SELECT version();"
# List tables
psql -U deploybrief -d deploybrief -c "\dt"
# Count records in tables
psql -U deploybrief -d deploybrief -c "SELECT
(SELECT COUNT(*) FROM users) as users,
(SELECT COUNT(*) FROM workspaces) as workspaces,
(SELECT COUNT(*) FROM ado_connections) as connections,
(SELECT COUNT(*) FROM deploy_briefs) as briefs;"# Check API is running
curl https://api.deploybrief.com/health
# Test authentication
curl -H "Authorization: Bearer YOUR-API-KEY" \
https://api.deploybrief.com/api/briefs# Test PAT and workspace
curl -u :YOUR-PAT \
https://dev.azure.com/YOUR-ORG/_apis/projects?api-version=7.1
# List pipelines in a project
curl -u :YOUR-PAT \
"https://dev.azure.com/YOUR-ORG/YOUR-PROJECT/_apis/pipelines?api-version=7.1"# Recent audit events
psql -U deploybrief -d deploybrief -c \
"SELECT * FROM audit_log ORDER BY timestamp DESC LIMIT 20;"
# Failed authentication attempts
psql -U deploybrief -d deploybrief -c \
"SELECT * FROM audit_log WHERE action LIKE '%failed%' ORDER BY timestamp DESC;"If these troubleshooting steps don't resolve your issue, please reach out with the following information:
Contact us via the contact form or check the documentation index for more guides.