Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
Zone.js posiblemente bloquee HttpErrorResponse para que no sea recibido por HttpInterceptor

Tengo problemas para que mi HttpInterceptor funcione en mi aplicación. Este es mi código:

 intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { return next.handle(req) .pipe( catchError((error: HttpErrorResponse) => { if (error instanceof HttpErrorResponse) { console.log(error); let toast: Toast = { header: "", body: "", details: "", pinned: false, showDetails: false, type: ToastTypes.DANGER, }; switch (error.status) { ... } return throwError(error); })) ) }

También intenté usar tap() en mi tubería, pero cada vez que ocurre un error, solo obtengo esto en mi consola:

 POST http://localhost:4200/fhir/search 500 (Internal Server Error) scheduleTask @ zone-evergreen.js:2845 scheduleTask @ zone-evergreen.js:385 onScheduleTask @ zone-evergreen.js:272 scheduleTask @ zone-evergreen.js:378 scheduleTask @ zone-evergreen.js:210 scheduleMacroTask @ zone-evergreen.js:233 scheduleMacroTaskWithCurrentZone @ zone-evergreen.js:1134 (anonymous) @ zone-evergreen.js:2878 proto.<computed> @ zone-evergreen.js:1449 ...

Además, incluso si trato de manejar los errores dentro de los bloques subscribe(), ocurre el mismo comportamiento y se ignora mi código.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!