Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

335
Visualizações
How to suppress Rxjs unhandled exception logging?

I have a stream implemented using Rxjs which may fail, and in the case that it does, I need the stream to close and to be able to handle the error for a graceful shutdown.

The error callback in the subscribe method does everything I want, but rxjs has built-in error reporting which I would like to suppress so that my code can handle this with more intentionality.

IIRC, the catchError operator would suppress this logging but it keeps the stream alive and would complicate dependent code as I would have to pipe out error information differently to trigger my error handling code elsewhere.

Is there a straight-forward way to suppress unhandled exception logging for rxjs while avoiding use of catchError so that I can handle error reporting my own way in the subscribe method's error callback?

Edit: as it turns out the situation was a little more serious than unnecessary logging. The pipeline was throwing exceptions asynchronously which could not be caught at top-level code, and were crashing the program before cleanup operations could complete. While ideally I would prefer to rely on the error callback in this scenario, I opted to fall back to the catchError operator used in a dependency prior to subscription, to prevent application crashes.

I'm leaving this question open for now in case anyone has a better answer.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda