You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skyflow/utils/_skyflow_messages.py
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -158,10 +158,13 @@ class Error(Enum):
158
158
MISSING_CLIENT_ID=f"{error_prefix} Initialization failed. Unable to read client ID in credentials. Verify your client ID."
159
159
MISSING_KEY_ID=f"{error_prefix} Initialization failed. Unable to read key ID in credentials. Verify your key ID."
160
160
MISSING_TOKEN_URI=f"{error_prefix} Initialization failed. Unable to read token URI in credentials. Verify your token URI."
161
+
INVALID_TOKEN_URI=f"{error_prefix} Initialization failed. Invalid Skyflow credentials. The token URI must be a string and a valid URL."
161
162
JWT_INVALID_FORMAT=f"{error_prefix} Initialization failed. Invalid private key format. Verify your credentials."
162
163
JWT_DECODE_ERROR=f"{error_prefix} Validation error. Invalid access token. Verify your credentials."
163
164
FILE_INVALID_JSON=f"{error_prefix} Initialization failed. File at {{}} is not in valid JSON format. Verify the file contents."
164
165
INVALID_JSON_FORMAT_IN_CREDENTIALS_ENV=f"{error_prefix} Validation error. Invalid JSON format in SKYFLOW_CREDENTIALS environment variable."
166
+
FAILED_TO_GET_BEARER_TOKEN=f"{ERROR}: [{error_prefix}] Failed to generate bearer token."
167
+
UNAUTHORIZED_ERROR_IN_GETTING_BEARER_TOKEN=f"{ERROR}: [{error_prefix}] Authorization failed while retrieving the bearer token."
165
168
166
169
INVALID_TEXT_IN_DEIDENTIFY=f"{error_prefix} Validation error. The text field is required and must be a non-empty string. Specify a valid text."
167
170
INVALID_ENTITIES_IN_DEIDENTIFY=f"{error_prefix} Validation error. The entities field must be an array of DetectEntities enums. Specify a valid entities."
@@ -336,6 +339,8 @@ class ErrorLogs(Enum):
336
339
KEY_ID_IS_REQUIRED=f"{ERROR}: [{error_prefix}] Key ID is required."
337
340
TOKEN_URI_IS_REQUIRED=f"{ERROR}: [{error_prefix}] Token URI is required."
338
341
INVALID_TOKEN_URI=f"{ERROR}: [{error_prefix}] Invalid value for token URI in credentials."
342
+
FAILED_TO_GET_BEARER_TOKEN=f"{ERROR}: [{error_prefix}] Failed to generate bearer token."
343
+
UNAUTHORIZED_ERROR_IN_GETTING_BEARER_TOKEN=f"{ERROR}: [{error_prefix}] Authorization failed while retrieving the bearer token."
339
344
340
345
341
346
TABLE_IS_REQUIRED=f"{ERROR}: [{error_prefix}] Invalid {{}} request. Table is required."
0 commit comments