From ff4fc13cbbf7132c06bbe8b66e8e0bf63c2198a3 Mon Sep 17 00:00:00 2001 From: prakharlowanshi11 Date: Tue, 23 Jun 2026 12:50:35 +0530 Subject: [PATCH] Revert "use the retry logic" --- ...services-interceptor-error-interceptor.module.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/libs/services/interceptor/error-interceptor/src/lib/services-interceptor-error-interceptor.module.ts b/libs/services/interceptor/error-interceptor/src/lib/services-interceptor-error-interceptor.module.ts index 32429ae1..dde7a26b 100644 --- a/libs/services/interceptor/error-interceptor/src/lib/services-interceptor-error-interceptor.module.ts +++ b/libs/services/interceptor/error-interceptor/src/lib/services-interceptor-error-interceptor.module.ts @@ -1,7 +1,7 @@ import { Injectable } from '@angular/core'; import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; -import { EMPTY, Observable, of, throwError } from 'rxjs'; -import { catchError, retry } from 'rxjs/operators'; +import { EMPTY, Observable, throwError } from 'rxjs'; +import { catchError } from 'rxjs/operators'; import { Router } from '@angular/router'; import { PrimeNgToastService } from '@proxy/ui/prime-ng-toast'; import { AngularFireAuth } from '@angular/fire/compat/auth'; @@ -27,15 +27,6 @@ export class ErrorInterceptor implements HttpInterceptor { this.cookieService.get('authToken') ) { return next.handle(request).pipe( - retry({ - count: 1, - delay: (error: HttpErrorResponse) => { - if (error instanceof HttpErrorResponse && error.status === 0) { - return of(null); - } - return throwError(() => error); - }, - }), catchError((err) => { if (err instanceof HttpErrorResponse) { if (err.status === 401) {