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
-
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
-
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
-
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?
-
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.
-
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?
-
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.