Closed alekbarszczewski closed 3 years ago
UPDATE: I've managed to repro the issue. You're using nats.js v2.0
that was released 3 days ago and has a lot of breaking changes. At the moment Moleculer's NATS transporter works with the nats client ^1.4.12
.
Hi @alekbarszczewski tested here the example that you've provided + nats server v2.2.0
and seems to be working fine.
Can you provide a repro repo?
Thanks! downgrading nats package solved the issue.
output:
I started NATS on my Mac in docker with this command (runs NATS server 2.2.0):
I can confirm NATS is working by using custom code to connect to NATS and check for connections through NATS web "gui":
When I visit
http://localhost:8222/connz
it shows following info:So NATS is working and I am able to connect to it. Moleculer can not connect to NATS though for some reason.