Authentication Issues
Keychain Access Denied
Problem: macOS keychain prompts appear repeatedly or access is denied. Solution:Multiple Credential Sources Conflict
Problem: Error message about credentials resolving from multiple sources. Solution: Enable strict auth mode to identify the conflict:JWT Token Expiration
Problem: Authentication fails with token expiration errors. Solution: JWTs are automatically refreshed (valid for 10 minutes). If you see this error, check:- System clock is synchronized
- API key hasn’t been revoked in App Store Connect
- Key ID and Issuer ID are correct
API Rate Limiting
429 Too Many Requests
Problem: API returns HTTP 429 errors. Solution: The CLI automatically retries GET/HEAD requests. Configure retry behavior:Request Timeouts
Problem: Long-running operations time out. Solution: Increase timeout values:Permission Errors
403 Forbidden
Problem: API returns 403 when accessing certain endpoints. Solution: Check your API key role at https://appstoreconnect.apple.com/access/integrations/api Common permission requirements:- Finance reports: Admin or Finance role
- Customer reviews: App Manager or higher
- Sales reports: Sales or Admin role
Build and Upload Issues
PKG Upload Failures
Problem: PKG files fail to upload with UTI errors. Solution: Ensure you’re using the latest version of the CLI (0.36.3+). The UTI for PKG uploads was fixed to usecom.apple.pkg.
Build Processing Stuck
Problem: Build upload succeeds but processing never completes. Solution: Check build status:PROCESSING for more than 30 minutes, check App Store Connect web UI for detailed processing errors.
Data Retrieval Issues
Missing Data on Paginated Results
Problem: Not all results are returned when listing resources. Solution: Always use--paginate for complete results:
Incorrect Date Formats
Problem: Analytics or finance reports fail with date format errors. Solution: Use the correct format for each report frequency:- Daily/Weekly:
YYYY-MM-DD(e.g.,2024-01-15) - Monthly:
YYYY-MM(e.g.,2024-01) - Yearly:
YYYY(e.g.,2024)
Environment and Configuration
Config File Not Found
Problem: CLI can’t find configuration file. Solution: Check config file locations (in priority order):./.asc/config.json(repo-local)~/.asc/config.json(user home)
Environment Variable Priority
Problem: Settings not taking effect. Solution: Priority order (highest to lowest):- Command-line flags (e.g.,
--output json) - Environment variables (e.g.,
ASC_DEFAULT_OUTPUT) - Config file settings
- Default values (TTY-aware for output)
Debug Mode
Enable Debug Logging
For detailed HTTP request/response logging:- Request URLs and headers
- Response status codes
- Response bodies
- Retry attempts
Testing Issues
Keychain Prompts During Tests
Problem: Tests trigger macOS keychain prompts. Solution: Always run tests with keychain bypass:Integration Tests Skipped
Problem: Integration tests don’t run. Solution: Integration tests are opt-in. Set credentials and use:Platform-Specific Issues
macOS Keychain Integration
Problem: Keychain storage fails on macOS. Solution: Grant terminal app access to keychain:- Open Keychain Access.app
- Find “asc” entries
- Right-click → Get Info → Access Control
- Add your terminal app (Terminal.app, iTerm2, etc.)
Linux Missing Dependencies
Problem: Build or runtime errors on Linux. Solution: Ensure Go 1.26+ is installed:Common Error Messages
”oldString not found in content”
Problem: Update or patch operation fails. Solution: This usually means:- Resource has been modified externally
- Version conflict (resource changed since last fetch)
“Relationship invalid” Errors
Problem: Setting relationships fails with validation errors. Solution: Common causes:- Related resource must be in specific state (e.g., live version for Game Center)
- Relationship is replace-only (PATCH), not append
- Related resource doesn’t exist or is deleted
Getting Help
Use Built-in Help
Always check command help first:Report Issues
If you’ve found a bug:- Check existing issues: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues
- Include:
- CLI version (
asc version) - Platform (macOS/Linux, architecture)
- Command run (sanitize sensitive data)
- Full error output with
ASC_DEBUG=api
- CLI version (
- For security issues, use private reporting: https://github.com/rudrankriyam/App-Store-Connect-CLI/security/advisories/new
Performance Optimization
Slow List Operations
Problem: Listing resources is slow. Solution:-
Limit results when you don’t need all data:
-
Use filters to reduce result set:
-
Sort by recent items first:
