Update .gitignore, remove package-lock.json, and enhance Cloudflare and Proxmox adapters
- Added lock file exclusions for pnpm in .gitignore. - Removed obsolete package-lock.json from the api and portal directories. - Enhanced Cloudflare adapter with additional interfaces for zones and tunnels. - Improved Proxmox adapter error handling and logging for API requests. - Updated Proxmox VM parameters with validation rules in the API schema. - Enhanced documentation for Proxmox VM specifications and examples.
This commit is contained in:
@@ -74,12 +74,27 @@ func categorizeError(errorStr string) ErrorCategory {
|
||||
}
|
||||
}
|
||||
|
||||
// Authentication errors (non-retryable without credential fix)
|
||||
if strings.Contains(errorStr, "authentication") ||
|
||||
strings.Contains(errorStr, "unauthorized") ||
|
||||
strings.Contains(errorStr, "401") ||
|
||||
strings.Contains(errorStr, "invalid credentials") ||
|
||||
strings.Contains(errorStr, "forbidden") ||
|
||||
strings.Contains(errorStr, "403") {
|
||||
return ErrorCategory{
|
||||
Type: "AuthenticationError",
|
||||
Reason: "AuthenticationFailed",
|
||||
}
|
||||
}
|
||||
|
||||
// Network/Connection errors (retryable)
|
||||
if strings.Contains(errorStr, "network") ||
|
||||
strings.Contains(errorStr, "connection") ||
|
||||
strings.Contains(errorStr, "timeout") ||
|
||||
strings.Contains(errorStr, "502") ||
|
||||
strings.Contains(errorStr, "503") {
|
||||
strings.Contains(errorStr, "503") ||
|
||||
strings.Contains(errorStr, "connection refused") ||
|
||||
strings.Contains(errorStr, "connection reset") {
|
||||
return ErrorCategory{
|
||||
Type: "NetworkError",
|
||||
Reason: "TransientNetworkFailure",
|
||||
|
||||
Reference in New Issue
Block a user