🔍
Try: "sync timeout", "401 unauthorized", "invalid schema", "cache override"
System Status: All services operational • Last updated:

Quick Diagnostic Flow

Step 1

Verify Connection

Ensure your environment can reach api.appconfig.json on port 443.

Step 2

Check Credentials

Validate your API key and environment scope in the dashboard.

Step 3

Clear Local Cache

Force a fresh fetch by running acfg cache --flush.

Step 4

Review Logs

Enable debug mode and check the terminal output for error codes.

Common Issues

Sync Configuration sync hangs or times out

If your app logs ACFG_TIMEOUT or the sync progress stalls past 80%, this is usually a network or proxy restriction.

  • Verify outbound HTTPS connectivity to *.appconfig.json
  • Check if your corporate firewall is blocking WebSocket upgrades
  • Increase timeout_ms in your SDK initialization (default: 5000)
  • Force manual sync: acfg sync --force

Still stuck? Run acfg diagnose --network and share the output.

Auth 401 Unauthorized / Invalid API Key

This error indicates mismatched or expired credentials.

  • Ensure you're using the correct key for your environment (dev, staging, or prod)
  • Keys starting with acfg_live_ are production-only
  • Rotate expired keys in Dashboard → Settings → API Access
  • Check for trailing spaces in environment variables

Never hardcode keys. Use ACFG_API_KEY env var.

SDK SDK initialization fails on startup

Common when there's a version mismatch between the SDK and the config schema.

  • Update SDK: npm update @appconfig/sdk or equivalent
  • Verify schema_version in your root config matches the SDK requirement
  • Check for TypeScript/Node version incompatibilities
  • Enable verbose logging: ACFG_DEBUG=true node app.js
Config Invalid JSON / Schema validation error

The platform rejects configs that don't conform to the defined schema.

  • Run local validation: acfg validate ./config.json
  • Check for trailing commas, missing quotes, or undefined types
  • Ensure all required fields from your schema are present
  • Use the online JSON formatter in the dashboard editor

Live Log Analysis

10:42:01INFOApp Config.json SDK v3.2.1 initialized
10:42:01INFOFetching configuration for environment: production
10:42:02WARNLocal cache stale (14m ago). Refreshing...
10:42:03INFOSync completed successfully. Applied 3 changes.
10:42:03INFOReal-time listener active. Channel: wss://sync.appconfig.json/ch/8f3a

Still experiencing issues?

Our engineering team monitors support channels 24/7. Provide your environment ID and log output for faster resolution.