Skip to content
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

bug: align registry reachable logic with npm #9

Closed
literat opened this issue Jun 1, 2021 · 6 comments
Closed

bug: align registry reachable logic with npm #9

literat opened this issue Jun 1, 2021 · 6 comments

Comments

@literat
Copy link

literat commented Jun 1, 2021

Hi,

this package is great and I want to use it but I am ending up on VPN. Because I have multiple registries behind company VPN.

And I also wonder. Classic publish configuration with one registry and without this package works just fine even the registry is behind VPN. But when I use this package and configure multiple publish registries I got information that are unreachable.

If I have ani clue where the problem might be I could try to modify it myself. So could you give me any advice, please?

Thank you.

@privatenumber
Copy link
Owner

I don't quite understand the issue here, but npm-multi-publsih has support for registries behind VPNs. As a matter of fact, my personal use-case is to publish to multiple registries, each behind a different VPN.

Is it possible to upload a video of the problem you're encountering?
If you're getting an error, do you mind sharing it?

@literat
Copy link
Author

literat commented Jun 2, 2021

We have 2 repositories, both using Nexus. Without this package publishing to first or second repository works just fine. Using this package I am stuck on "Retry" or "Exit".

Screenshot 2021-06-02 at 09 03 09

@privatenumber
Copy link
Owner

Maybe the prompt should be changed to "If it's behind a VPN, try enabling it" or something like that.

During that phase, make sure you're switching your VPN so https://nexus3-3.sandbox.cdev is reachable.

@literat
Copy link
Author

literat commented Jun 2, 2021

Ok, I have dive deeper into your code and check reachable of my urls using is-reachable.

https://nexus3-3.sandbox.cdev Ok
https://nexus3-3.sandbox.cdev/repository/npm-compres Fail
https://nexus3-3.sandbox.cdev/repository/npm-compres/ Ok

So, trailing slash 🤦

Thanks o lot for your help.

@privatenumber
Copy link
Owner

Glad you were able to resolve it.

I will leave this open since I think there's room for improvement in this package to better align with how npm interacts with the registry.

Some references for me:

@privatenumber privatenumber changed the title Support for registry behind VPN bug: align registry reachable logic with npm Jun 2, 2021
@privatenumber
Copy link
Owner

Closed via #11

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

No branches or pull requests

2 participants