🪢 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
fix(trpcErrorToast): enhance error handling for 5xx server errors wit… (#7279)
Marc Klingenbe7cc835befb
diff --git a/web/src/utils/trpcErrorToast.tsx b/web/src/utils/trpcErrorToast.tsxindex 785f6fdc8f..3144f7fc4f 100644--- a/web/src/utils/trpcErrorToast.tsx+++ b/web/src/utils/trpcErrorToast.tsx@@ -50,6 +50,10 @@ const getErrorDescription = (httpStatus: number) => {case 524:return "Request took too long to process. Please try again later.";default:+ // Check if it's a 5xx server error+ if (httpStatus >= 500 && httpStatus < 600) {+ return "Internal server error. We've received an alert about this issue and will be working on fixing it. Please reach out to support if this persists.";+ }return "Internal error";}};