Closed manju4ever closed 2 years ago
Check the version of NATS server and nats library. This is not a Moleculer error, it's a NATS error.
I will check this once more. Thanks @icebob.
Hi @icebob , we tried with upgrading nats and also the npm package. It only fails from the context of Jest.
Important thing: We're not loading the service into tests, instead we run the required services and then test it.
Nats Server: 2.7 Nats Client Lib: 2.6.1
Not sure what to do tried all ways. This also happens when testing with the default TCP transporter.
Try to create a minimal reproducible example code.
Hi Team,
So we're trying to test the microservice using jest. We've a transporter & another moleculer service in docker. When we invoke jest, it shows as
BAD_PAYLOAD
. The connection fails for some reason.But if we put the same code as a separate JS file, it seems to be working fine.
Context
Failure Logs