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
@@ -153,10 +153,13 @@ class Error(Enum):
153
153
MISSING_CLIENT_ID=f"{error_prefix} Initialization failed. Unable to read client ID in credentials. Verify your client ID."
154
154
MISSING_KEY_ID=f"{error_prefix} Initialization failed. Unable to read key ID in credentials. Verify your key ID."
155
155
MISSING_TOKEN_URI=f"{error_prefix} Initialization failed. Unable to read token URI in credentials. Verify your token URI."
156
+
INVALID_TOKEN_URI=f"{error_prefix} Initialization failed. Invalid Skyflow credentials. The token URI must be a string and a valid URL."
156
157
JWT_INVALID_FORMAT=f"{error_prefix} Initialization failed. Invalid private key format. Verify your credentials."
157
158
JWT_DECODE_ERROR=f"{error_prefix} Validation error. Invalid access token. Verify your credentials."
158
159
FILE_INVALID_JSON=f"{error_prefix} Initialization failed. File at {{}} is not in valid JSON format. Verify the file contents."
159
160
INVALID_JSON_FORMAT_IN_CREDENTIALS_ENV=f"{error_prefix} Validation error. Invalid JSON format in SKYFLOW_CREDENTIALS environment variable."
161
+
FAILED_TO_GET_BEARER_TOKEN=f"{ERROR}: [{error_prefix}] Failed to generate bearer token."
162
+
UNAUTHORIZED_ERROR_IN_GETTING_BEARER_TOKEN=f"{ERROR}: [{error_prefix}] Authorization failed while retrieving the bearer token."
160
163
161
164
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."
162
165
INVALID_ENTITIES_IN_DEIDENTIFY=f"{error_prefix} Validation error. The entities field must be an array of DetectEntities enums. Specify a valid entities."
@@ -332,6 +335,8 @@ class ErrorLogs(Enum):
332
335
KEY_ID_IS_REQUIRED=f"{ERROR}: [{error_prefix}] Key ID is required."
333
336
TOKEN_URI_IS_REQUIRED=f"{ERROR}: [{error_prefix}] Token URI is required."
334
337
INVALID_TOKEN_URI=f"{ERROR}: [{error_prefix}] Invalid value for token URI in credentials."
338
+
FAILED_TO_GET_BEARER_TOKEN=f"{ERROR}: [{error_prefix}] Failed to generate bearer token."
339
+
UNAUTHORIZED_ERROR_IN_GETTING_BEARER_TOKEN=f"{ERROR}: [{error_prefix}] Authorization failed while retrieving the bearer token."
335
340
336
341
337
342
TABLE_IS_REQUIRED=f"{ERROR}: [{error_prefix}] Invalid {{}} request. Table is required."
0 commit comments