LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
error handling with statusText replaced with data?.message (#288)
alicafc757e59f4
diff --git a/frontend/src/hooks/useUserSession.js b/frontend/src/hooks/useUserSession.jsindex 51566f4c7..4b1d8509f 100644--- a/frontend/src/hooks/useUserSession.js+++ b/frontend/src/hooks/useUserSession.js@@ -18,11 +18,11 @@ const useUserSession = () => {const res = await axios(requestOptions);return res.data;} catch (error) {- if (error?.response?.statusText === "Unauthorized") {+ if (error?.response?.data?.message === "Unauthorized") {return;}- if (error?.response?.statusText === "Payment Required") {+ if (error?.response?.data?.type === "subscription_error") {navigate("/trial-expired");return;}