Can't connect to Docker NATS server

antogonzaHOBBY

a year ago

I have deployed a NATS server from a Docker image. It is working fine, but when I try to connect from other services they respond with a Timeout. I have tried with the private url, the public one and some other urls with doesn't work.
Can anyone help me? This is the full error:
piccola-launcher-orders-ms-1 | /usr/src/app/nodemodules/nats/lib/nats-base-client/core.js:140 piccola-launcher-orders-ms-1 | return new NatsError(m, code, chainedError); piccola-launcher-orders-ms-1 | ^ piccola-launcher-orders-ms-1 | piccola-launcher-orders-ms-1 | NatsError: TIMEOUT piccola-launcher-orders-ms-1 | at NatsError.errorForCode (/usr/src/app/nodemodules/nats/lib/nats-base-client/core.js:140:16)
piccola-launcher-orders-ms-1 | at timeout (/usr/src/app/nodemodules/nats/lib/nats-base-client/util.js:57:48) piccola-launcher-orders-ms-1 | at ProtocolHandler. (/usr/src/app/nodemodules/nats/lib/nats-base-client/protocol.js:415:44)
piccola-launcher-orders-ms-1 | at Generator.next ()
piccola-launcher-orders-ms-1 | at /usr/src/app/node_modules/nats/lib/nats-base-client/protocol.js:8:71
piccola-launcher-orders-ms-1 | at new Promise ()
piccola-launcher-orders-ms-1 | at _awaiter (/usr/src/app/nodemodules/nats/lib/nats-base-client/protocol.js:4:12)
piccola-launcher-orders-ms-1 | at ProtocolHandler.dial (/usr/src/app/nodemodules/nats/lib/nats-base-client/protocol.js:411:16) piccola-launcher-orders-ms-1 | at ProtocolHandler. (/usr/src/app/nodemodules/nats/lib/nats-base-client/protocol.js:480:32)
piccola-launcher-orders-ms-1 | at Generator.next () {
piccola-launcher-orders-ms-1 | code: 'TIMEOUT',
piccola-launcher-orders-ms-1 | chainedError: undefined
piccola-launcher-orders-ms-1 | }
piccola-launcher-orders-ms-1 |
piccola-launcher-orders-ms-1 | Node.js v21.7.3

Archived

0 Replies

a year ago

Please do not create duplicate threads across the two platforms.

Status changed to Archived brody about 1 year ago


Can't connect to Docker NATS server - Railway Help Station