moleculer icon indicating copy to clipboard operation
moleculer copied to clipboard

How to intercept transporter errors ?

Open stanislav-web opened this issue 5 years ago • 2 comments

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ ] I am running the latest version (0.14-beta)
  • [ ] I checked the documentation and found no answer

Current Behavior

Anybody know how to intercept Transporter error inside source ? I am using Molecular Web [API] and no one onError interceptor doesn't catch transporter logs. I need to report this events into Google Stackdriver Снимок экрана 2019-11-04 в 0 48 20

Here is my transporter config (i just want to intercept any transporter events from my services)

const broker = new ServiceBroker({
    transporter: {
    type: 'NATS',
    options: {
      url: process.env.TRANSPORTER_URL,
      user: process.env.TRANSPORTER_USER,
      pass: process.env.TRANSPORTER_PASS
    }
});

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Moleculer version: 0.14.0-beta5
  • NodeJS version: 10.16.3
  • Operating System: Mac OS

stanislav-web avatar Nov 03 '19 22:11 stanislav-web

Currently it is not available to catch transporter errors.

icebob avatar Nov 04 '19 13:11 icebob

+1

mike-aungsan avatar Dec 31 '20 01:12 mike-aungsan

Released in v0.14.19 by PR #1048

intech avatar Oct 10 '22 22:10 intech