LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
added log and raise exeception in domain validation (#277)
vishnuszipstacka0e052b577af
diff --git a/backend/account/authentication_controller.py b/backend/account/authentication_controller.pyindex 97cbcff58..776f08e42 100644--- a/backend/account/authentication_controller.py+++ b/backend/account/authentication_controller.py@@ -118,6 +118,8 @@ class AuthenticationController:if hasattr(ex, "code") and ex.code in {AuthorizationErrorCode.USF,AuthorizationErrorCode.USR,+ AuthorizationErrorCode.INE001,+ AuthorizationErrorCode.INE002,}: # type: ignoreresponse = Response(status=status.HTTP_412_PRECONDITION_FAILED,diff --git a/backend/account/constants.py b/backend/account/constants.pyindex 5e9151b31..15c113790 100644--- a/backend/account/constants.py+++ b/backend/account/constants.py@@ -72,6 +72,9 @@ class AuthorizationErrorCode:INF: INVITATION NOT FOUND (Invitation is either invalid or has expired)UMM: USER MEMBERSHIP MISCONDUCTUSF: USER FOUND (User Account Already Exists for Organization)+ INE001: INVALID EMAIL Exception code when an invalid email address is used+ like disposable.+ INE002: INVALID EMAIL Exception code when an invalid email address format.Error code reference :frontend/src/components/error/GenericError/GenericError.jsx.@@ -82,3 +85,5 @@ class AuthorizationErrorCode:INF = "INF"USF = "USF"USR = "USR"+ INE001 = "INE001"+ INE002 = "INE002"diff --git a/frontend/src/components/error/GenericError/GenericError.jsx b/frontend/src/components/error/GenericError/GenericError.jsxindex a05f0de4c..d888ec52c 100644--- a/frontend/src/components/error/GenericError/GenericError.jsx+++ b/frontend/src/components/error/GenericError/GenericError.jsx@@ -35,6 +35,14 @@ function GenericError() {subtitle:"You'll need to contact the admin of your organization's account to get access.",},+ INE001: {+ title: `Email not allowed`,+ subtitle: "Disposible emails not allowed.",+ },+ INE002: {+ title: `Invalid Email format`,+ subtitle: "Please give a valid email address",+ },// Add more key-value pairs as needed};