teamcity-dotnet-plugin icon indicating copy to clipboard operation
teamcity-dotnet-plugin copied to clipboard

dotnet restore returns 401

Open mkoziel2000 opened this issue 4 years ago • 2 comments

This problem started happening after we downloaded and installed the latest teamcity patch made available this week.

The behavior: running the ".NET" runner with "restore" against a private repo that requires authentication always produces a 401.

What we've checked: We checked to verify that the credentials where still valid and that the nuget endpoint could still be hit by a browser with those credentials. Nothing changed in our build configurations between yesterday and today...the installation of the patch around noon today seem to be when this problem started appearing. We are using Teamcity as our nuget repo. I verified that I can perform a "dotnet restore" from the command line within the agent successfully.

Our workaround at the moment is to let "dotnet build" perform the implicit restore for us.

TeamCity Professional 2019.2.3 (build 72031)

mkoziel2000 avatar Apr 23 '20 22:04 mkoziel2000

The related issue is https://youtrack.jetbrains.com/issue/TW-65581

NikolayPianikov avatar Apr 23 '20 22:04 NikolayPianikov

@mkoziel2000 Please try updating this plugin

NikolayPianikov avatar Apr 23 '20 22:04 NikolayPianikov