nestjs-microservices icon indicating copy to clipboard operation
nestjs-microservices copied to clipboard

communications app fails because port is already in use

Open aminnaggar opened this issue 2 years ago • 3 comments

Thanks for creating this repo and video!

As I was following along with you I found it interesting that you never assigned the communications microservice a separate port from the backend microservice, and when I came to run it sure enough it failed due to the port being already in use.

I did a quick sanity check and cloned your repo only to hit the same error. I was easily able to work around that by setting a port but Im' really curious how did you get yours to work without having to do that?

aminnaggar avatar Jul 27 '22 06:07 aminnaggar

Communication service does not use a port as the other services. It uses a transport: Transport.TCP in the app module. Unlike the other two that use ports 3000 and 3001

sMiter911 avatar Sep 28 '22 20:09 sMiter911

@sMiter911 What about the analytics micro service?

SithumDev07 avatar Dec 30 '22 18:12 SithumDev07

Same issue in analytics project

CoroTapia6191 avatar May 03 '24 07:05 CoroTapia6191