Skip to content

Request timeouts when installing packages due to invalid hostname #86

@benduran

Description

@benduran

I'm currently hosting several versions of this library on some AWS instances. I've been having people reporting issues with package installation timeouts, which seem to be stemming from the following line of code:

image

All packages are having their baseUrl set to whatever the server's config.host property was set. In theory, this should work with no issues. In practice, however, it is relatively common to have the server's bound hostname different from the hostname client's are using for requests (think of load-balanced servers, for example).

What I think would correct this issue would be swapping over to using the requested hostname in the http request, rather than the config.host value.

Here's a screencap of the issue clients are running into when trying to use our private npm repo:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions