๐Configuration Problems
Overview
Configuration Architecture
3-Tier Resolution System
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Tier 1: COMPANY DEFAULT CONFIG โ
โ - Set by admin at company level โ
โ - Applies to all users in company โ
โ - Lowest priority โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ (can be overridden)
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Tier 2: USER OVERRIDE CONFIG โ
โ - Set by user for their account โ
โ - Overrides company default โ
โ - Medium priority โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ (can be overridden)
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Tier 3: EXPLICIT providerName IN REQUEST โ
โ - Specified in API request body โ
โ - Overrides all other configs โ
โ - Highest priority (ALWAYS WINS) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโResolution Order
Common Configuration Issues
Issue 1: "Provider not configured"
Solution 1: Check All Configuration Levels
Solution 2: Create Missing Configuration
Issue 2: Configuration Priority Confusion
Understanding Priority
Issue 3: Invalid Credentials
Solution: Validate Credentials
Issue 4: Config Validation Errors
Solution: Validate Config Schema
Issue 5: Config Inheritance Issues
Testing Configuration Resolution
Test Resolution Logic
Simulate Dispatch
Debug Logging
Enable Config Debug Mode
Common Configuration Mistakes
Mistake 1: Inactive Configuration
Mistake 2: Multiple Defaults
Mistake 3: Wrong Service Type
Best Practices
1. Use Company Defaults
2. User Overrides for Exceptions
3. Explicit Provider for Edge Cases
4. Validate Before Saving
Related Documentation
Summary
Last updated