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

brody
EMPLOYEE

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


brody
EMPLOYEE

a year ago

1343651029966782500


brody
EMPLOYEE

a year ago

80 != 4200


phsebastiao
HOBBYOP

a year ago

oh wait a min i might have caught something


brody
EMPLOYEE

a year ago

fwiw botijela is listening on 8080


phsebastiao
HOBBYOP

a year ago

isnt 80 and 8080 the same?


brody
EMPLOYEE

a year ago

nope they are two different numbers


brody
EMPLOYEE

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


brody
EMPLOYEE

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


brody
EMPLOYEE

a year ago

yippie


phsebastiao
HOBBYOP

a year ago

thanks


brody
EMPLOYEE

a year ago

No problem!


phsebastiao
HOBBYOP

a year ago

!s


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody 12 months ago


Loading...