Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    registry.npmjs.org connector requires authentication - why?

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 31 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jacob.appleton_7306
      last edited by

      Re: Unable to query https://registry.npmjs.org

      We had a ProGet connector to https://registry.npmjs.org working just fine, but then started seeing 401 errors when ProGet was trying to refresh the feed and we were unable to download new package versions.

      Following the advice on the thread linked, we created a user at npmjs.org and added it to the connector. It is now working fine.

      I have two questions about this:

      1. What changed? As far as I understand, you don't need to have an account to download npm packages from npmjs.org (I can do it from the command-line without authenticating). Why does it seem that ProGet needs one?
      2. Can someone please confirm that ProGet connectors are unidirectional? ie. you can download packages via a connector, but can't publish via one.

      Thanks

      1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        I'll start with the easy one; connectors are "read only", there is no mechanism to push a package to a connector in ProGet.

        As for authentication, I really don't know. That's weird, and it's definitely nothing in ProGet.

        The 401 could be coming from a proxy server (inside your network) or from registry.npmjs.org itself, and there's no way to know within ProGet which it is.

        • I can't imagine it's a proxy server that somehow works with a npmjs.org username/password. But, maybe it is.

        • I don't know why registry.nmpjs.org would send you a 401. Other users haven't experienced this, and I just tested it on a brand new instance myself... and the connector worked just fine. There is talk of throttling large organizations, so maybe it's related to them blocking your IP or something?

        It could have also just been a temporary glitch, somewere. Maybe if you remove authentication, it will work.

        ABout the only way to diagnose this would be to attach ProGet to a tool like Fiddler or WireShark, so you can see the requests PRoGet makes, then reproduce those exact same requests, and either reach out to your internal IT folks or try your luck with npmjs.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation