Express requests through private domain gone wrong?
phsebastiao
HOBBYOP

a year ago

I have two applications both served using NodeJS Express and they dont seem to be communicating through private domain

Project ID: d6f12898-6068-4b22-a00e-af3f7da567b1

Solved

19 Replies

a year ago

port 80 is likely wrong, you need to use the actual port the application is listening on


phsebastiao
HOBBYOP

a year ago

im getting the port through .env


phsebastiao
HOBBYOP

a year ago

default in web is 4200 so whats displayed there is the railway port


a year ago

1343651029966782500


a year ago

80 != 4200


phsebastiao
HOBBYOP

a year ago

oh wait a min i might have caught something


a year ago

fwiw botijela is listening on 8080


phsebastiao
HOBBYOP

a year ago

isnt 80 and 8080 the same?


a year ago

nope they are two different numbers


a year ago

vtuber emoji lfg


phsebastiao
HOBBYOP

a year ago

alright so do I just need to set the port on both?


phsebastiao
HOBBYOP

a year ago

i was wrong


a year ago

you need to use port 8080 in the url when calling your service via the private network


phsebastiao
HOBBYOP

a year ago

it worked, how surprising


a year ago

yippie


phsebastiao
HOBBYOP

a year ago

thanks


a year ago

No problem!


phsebastiao
HOBBYOP

a year ago

!s


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...