antogonza1
Problem with NATS server from Docker image
Project ID: cd4ba81b-6c4a-4395-ab96-6db05d8eed0f
Hi everyone. I'm facing another error with my docker project. I have deployed a NATS server from a Docker image. It is working fine, but when I try to connect from other services they answer with a Timeout. I have tried with the private url, the public one and some other urls but it doesn't work. Also tried to increase the timeout time, but it neither works. Can anyone help me? This is the full error:
piccola-launcher-orders-ms-1 | /usr/src/app/node_modules/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/node_modules/nats/lib/nats-base-client/core.js:140:16)
piccola-launcher-orders-ms-1 | at timeout (/usr/src/app/node_modules/nats/lib/nats-base-client/util.js:57:48)
piccola-launcher-orders-ms-1 | at ProtocolHandler. (/usr/src/app/node_modules/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/node_modules/nats/lib/nats-base-client/protocol.js:4:12)
piccola-launcher-orders-ms-1 | at ProtocolHandler.dial (/usr/src/app/node_modules/nats/lib/nats-base-client/protocol.js:411:16)
piccola-launcher-orders-ms-1 | at ProtocolHandler. (/usr/src/app/node_modules/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
22 replies
Docker deployed but have no answer from postman
Project ID: cd4ba81b-6c4a-4395-ab96-6db05d8eed0f
Hi there!
I'm new in Docker and just testing it. I have created an API using Nest.js and microservices, and I have created a Docker Compose wich works fine locally. I have deployed all my images to docker hub, and have deployed the client to Railway (just that service for testing). It is well deployed, with no errors and I have all the necessary logs in console. The problem is where I launch any request from postman, I get no answer, just like the screenshot. After some time, I get a TimeOut error.
I'm so lost on this, and have no idea on how to continue. Anyone can help? 🙂
Thanks!
13 replies