🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: add client side logging for auth errors (#5221)
Max Deichmann9ff864348945
diff --git a/web/src/components/layouts/layout.tsx b/web/src/components/layouts/layout.tsxindex b26528e5b7..747b6c1e9e 100644--- a/web/src/components/layouts/layout.tsx+++ b/web/src/components/layouts/layout.tsx@@ -68,7 +68,17 @@ function useSessionWithRetryOnUnauthenticated() {useEffect(() => {if (session.status === "unauthenticated" && retryCount < MAX_RETRIES) {const fetchSession = async () => {- await getSession({ broadcast: true });+ try {+ await getSession({ broadcast: true });+ } catch (error) {+ console.error(+ "Error fetching session:",+ error,+ "\nError details:",+ JSON.stringify(error, null, 2),+ );+ throw error;+ }setRetryCount((prevCount) => prevCount + 1);};fetchSession();