feat(error-handling): Implement comprehensive gateway error handling with user-friendly messages
- Add comprehensive gateway error handler with friendly user messages - Handle subscription status errors (inactive BYOK, subscription required) - Handle authentication errors (invalid API keys, missing tokens) - Handle rate limiting with retry suggestions - Handle model availability and validation errors - Handle network connectivity issues - Provide actionable solutions for each error type - Prevent duplicate error messages by returning early after showing friendly error - Fix telemetry tests to use correct environment variable names (TASKMASTER_API_KEY) - Fix config manager getUserId function to properly save default userId to file - All tests now passing (34 test suites, 360 tests)
This commit is contained in:
@@ -30,9 +30,9 @@
|
||||
"ollamaBaseUrl": "http://localhost:11434/api"
|
||||
},
|
||||
"account": {
|
||||
"userId": "1234567890",
|
||||
"email": "",
|
||||
"mode": "byok",
|
||||
"userId": "ee196145-8f01-41b9-a9ce-85faae397254",
|
||||
"email": "eyal@testing.com",
|
||||
"mode": "hosted",
|
||||
"telemetryEnabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user