Error when view package source from team city nuget feed in visual studio
Answered
Got below error when trying to view the packages using v2 feed
[teamcity.cs.nuget.mv5.v2] The V2 feed at 'http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v2/Search()?$filter=IsLatestVersion&searchTerm=''&targetFramework=''&includePrerelease=false&$skip=0&$top=26&semVerLevel=2.0.0' returned an unexpected status code '401 '.
Another error using v3 feed
[teamcity.cs.nuget.mv5] Unable to load the service index for source http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v3/index.json.
Response status code does not indicate success: 401 ().
Here's the build log for my nuget publish step:
[14:55:25]Step 4/4: NuGet Publish (1s)
[14:55:25][Step 4/4] push: Publish package MV.Core.5.0.50.nupkg
[14:55:25][push] Starting: C:\TeamCity\buildAgent\tools\NuGet.CommandLine.5.8.0\tools\NuGet.exe push C:\TeamCity\buildAgent\work\c9e7aea748350610\MV.Core.5.0.50.nupkg ******* -SkipDuplicate -Source http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v3/index.json
[14:55:25][push] in directory: C:\TeamCity\buildAgent\work\c9e7aea748350610
[14:55:25][push] Pushing MV.Core.5.0.50.nupkg to 'http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v2'...
[14:55:25][push] PUT http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v2/
[14:55:26][push] Conflict http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v2/ 33ms
[14:55:26][push] Package 'C:\TeamCity\buildAgent\work\c9e7aea748350610\MV.Core.5.0.50.nupkg' already exists at feed 'http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v2'.
[14:55:26][push] Process exited with code 0
[14:55:26][Step 4/4] Attempt to publish symbol package. Symbol packages are not fully supported by TeamCity internal feed. For more details see https://confluence.jetbrains.com/display/TCDL/NuGet#NuGet-symbols
[14:55:26][Step 4/4] push: Publish package MV.Core.5.0.50.symbols.nupkg
[14:55:26][push] Starting: C:\TeamCity\buildAgent\tools\NuGet.CommandLine.5.8.0\tools\NuGet.exe push C:\TeamCity\buildAgent\work\c9e7aea748350610\MV.Core.5.0.50.symbols.nupkg ******* -SkipDuplicate -Source http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v3/index.json
[14:55:26][push] in directory: C:\TeamCity\buildAgent\work\c9e7aea748350610
[14:55:26][push] Pushing MV.Core.5.0.50.symbols.nupkg to 'http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v2'...
[14:55:26][push] PUT http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v2/
[14:55:26][push] Conflict http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v2/ 32ms
[14:55:26][push] Package 'C:\TeamCity\buildAgent\work\c9e7aea748350610\MV.Core.5.0.50.symbols.nupkg' already exists at feed 'http://localhost:8018/httpAuth/app/nuget/feed/Mv5/mv5feed/v2'.
[14:55:27][push] Process exited with code 0
Please sign in to leave a comment.
Hello Eutat,
Both queries return 401 which means the request was not authorized. Could you please confirm if the TeamCity NuGet feed is saved as a package source with correct credentials in VS?