🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🩹 fix: ignore abort signal errors in TRPC client (#9809)
Arvin Xu7f7dcfbff9ce
diff --git a/src/libs/trpc/client/lambda.ts b/src/libs/trpc/client/lambda.tsindex 249151fe062..18c80aceea4 100644--- a/src/libs/trpc/client/lambda.ts+++ b/src/libs/trpc/client/lambda.ts@@ -21,10 +21,16 @@ const errorHandlingLink: TRPCLink<LambdaRouter> = () => {next(op).subscribe({complete: () => observer.complete(),error: async (err) => {+ // Check if this is an abort error and should be ignored+ const isAbortError = err.message.includes('aborted') || err.name === 'AbortError' ||+ err.cause?.name === 'AbortError' ||+ err.message.includes('signal is aborted without reason');+const showError = (op.context?.showNotification as boolean) ?? true;const status = err.data?.httpStatus as number;- if (showError) {+ // Don't show notifications for abort errors+ if (showError && !isAbortError) {const { loginRequired } = await import('@/components/Error/loginRequiredNotification');const { fetchErrorNotification } = await import('@/components/Error/fetchErrorNotification'