Common Errors
Updated: 2024-02-13
Installation Errors
"App is damaged and can't be opened" (macOS)
Cause: macOS Gatekeeper quarantine attribute
Solution:
sudo xattr -rd com.apple.quarantine "/Applications/霖君.app""Cannot be opened because it is from an unidentified developer" (macOS)
Cause: macOS Gatekeeper quarantine attribute
Solution:
xattr -cr /Applications/霖君.app"Windows Defender SmartScreen blocked this app"
Cause: App unsigned or signature not trusted
Solution: Click "More info" > "Run anyway"
Proxy Errors
"Port already in use"
Cause: Port 8310 (default) is used by another program
Solution:
- Change to a different proxy port, or
- Close the program using the port:
# Find process using the port (using 8310 as example)
# macOS/Linux
lsof -i :8310
# Windows
netstat -ano | findstr :8310"Proxy binary not found"
Cause: CLIProxyAPIPlus binary not downloaded or deleted
Solution: Re-download proxy binary on the About page
"Proxy startup timeout"
Cause: Insufficient system resources or antivirus blocking
Solution:
- Check system resource usage
- Add LinJun to antivirus whitelist
- Try restarting the app
Network Errors
"Cannot connect to provider"
Cause: Network issues or provider service outage
Solution:
- Check network connection
- Check provider service status
- Try using a proxy/VPN
"Request timeout"
Cause: High network latency or slow service response
Solution:
- Check network quality
- Retry later
- Consider using a closer service node
Authentication Errors
"Token expired"
Cause: OAuth token expired
Solution: Re-authorize via OAuth login on the Providers page
"Invalid API key"
Cause: Custom provider API key is wrong or expired
Solution: Check and update API key
CLI Tool Errors
Tool errors after configuration
Cause: Proxy not running or configuration error
Solution:
- Confirm LinJun proxy service is running (status shows "Running")
- Confirm at least one provider account is added
- Check if port 8310 is correct
Auto-configuration didn't detect tool
Cause: CLI tool not properly installed
Solution:
- Confirm CLI tool is properly installed
- Run tool in terminal to confirm it works
- Use manual configuration as alternative
Data Errors
"Configuration file corrupted"
Cause: Configuration file format error
Solution:
- Backup current configuration file
- Delete configuration file
- Restart app to generate default config
- Redo necessary configuration
Token file corrupted
Cause: JSON files in ~/.cli-proxy-api/ are corrupted
Solution:
- Delete the corresponding token file
- Re-login via OAuth
Getting Help
If above solutions don't work:
- Collect error logs
- Submit issue on GitHub Issues
- Include system info and error logs
