Skip to content

server adress log leads to error #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

creadicted
Copy link
Contributor

@creadicted creadicted commented Jul 10, 2018

I am not shure if it is a windows issue.
But I had to change the adress log since adress is not defined.
${this.server.address().address}

Merging an upstream repository into fork
Fixed error where server could not start since address was not defined propperly. (Maybe windows issue)
@vrudikov
Copy link
Owner

Ok. Need to double check it works on Mac/Linux

// TODO: replace with Morgan call
// tslint:disable-next-line:no-console
console.log(`Listening to http://${this.server.address().address}:${this.server.address().port}`);

console.log(`Listening to http://localhost:${address.port}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that would be better to print 'localhost' only if the address is undefined.

console.log(`Listening to http://${address.address? address.address:'localhost'}:${address.port}`);

Copy link
Owner

@vrudikov vrudikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try to reproduce, plz

// TODO: replace with Morgan call
// tslint:disable-next-line:no-console
console.log(`Listening to http://${this.server.address().address}:${this.server.address().port}`);

console.log(`Listening to http://localhost:${address.port}`);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why localhost?

@vrudikov
Copy link
Owner

Can you try to reproduce, plz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants