Default port 80 causing issues
Opened this issue · 0 comments
jacopomazzoni commented
I was testing this in an express app running on port 3000 and it took me way too long to understand that if the html code links to other files it uses port 80 by default to try and get those files.
it would be really nice if one could specify what port to use for internal links or if the error was more eloquent about it or better yet if it failed gracefully instead of crashing:
node:internal/process/promises:265
triggerUncaughtException(err, true /* fromPromise */);
^
Error: connect ECONNREFUSED 127.0.0.1:80
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 80,
response: undefined
}