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!

    Connector error authenticating against a feed that requires authentication

    Scheduled Pinned Locked Moved Support
    feedsauthenticationproget
    6 Posts 1 Posters 28 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I have created a connector within Proget that links to another feed that requires authentication. The error is "An error occurred processing a PUT request to {url}: Invalid user name or password.

      Here is the stack trace:
      at Inedo.ProGet.WebApplication.SimpleHandlers.NuGet.NuGetApi.AuthenticateUser(HttpContext context, RequestData urlData)
      at Inedo.ProGet.WebApplication.SimpleHandlers.NuGet.NuGetApi.PutHandler.<ProcessPutRequestAsync>d__0.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at Inedo.ProGet.WebApplication.SimpleHandlers.NuGet.NuGetApi.<ProcessRequestAsync>d__6.MoveNext()

      Product: ProGet
      Version: 4.1.3

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Hi Bob, that error is exactly what it says... "Invalid user name or password"

        You can always install Fiddler on the ProGet server, and then configure ProGet to point to that proxy, and then see the outbound requests.

        However it looks like the error is occurring when you our PUSHING a package. That's not related to the connector however

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Thanks for the response. If the error is with the authentication on a push, then it is occurring when the connector is trying to push a package to the feed. To provide more information:

          I an trying to try to Proget feeds A & B together so Feed A contains all of the packages of Feed A plus Feed B. Both Feed A require authentication (no anonymous access). I an adding a connector on Feed A that links to Feed B and adding in the username/password for Feed B. If it is failing on a push, the connector is failing on pushing a package from Feed B into Feed A even though the connector is associated with Feed A.

          Does that make sense?

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            Connectors only used when reading packages...

            Read (list, pull, etc):

            [Client] <-- [Feed1] <-- [Local Package Store]
                                  <-- [Connector1]
                                   <-- [Connector2]
                                    <-- [Connector3]
            

            Write (put, push, etc):

            [Client] --> [Feed1] --> [Local Package Store]
            

            So, in this case, your client configuration needs to have the right credentials.

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              That is how I would of expected it to work. The only reason I said it was writing to the feed was because you said the error was occurring when I was pushing a package which I wasn't. I just simply created a connector that pointed to an existing choco feed I created with Proget that was authenticated. The connector never shows that it is working. After creating the connector, the status displays "? Unknown". How do you suggest I get past that issue?

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                The error you shared was: An error occurred processing a PUT request to {url}: Invalid user name or password. A PUT request is what the NuGet client does to push packages to a feed.

                You'd want to look for a message related to GET or other requests. But, if you're seeing an unknown, then the problem is likely authentication related, but you'd have to look in the error log, it could be a bad url too...

                You can always try run fiddler, and attach ProGet to the fiddler proxy server to see precicely the requests that proget is making as well.

                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