We use dotnet build and get sporadically an error on restoring packages.
Most the time pulling packages works. But some times we get the following error:
Failed to download package 'System.Text.Encoding.CodePages.5.0.0' from 'http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/system.text.encoding.codepages/5.0.0/system.text.encoding.codepages.5.0.0.nupkg'.
Response status code does not indicate success: 403 (Forbidden).
Here is an extract from the log:
OK http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/system.data.sqlclient/index.json 83ms
GET http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/xeecommon/index.json
OK http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/xeecommon/index.json 91ms
GET http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/sixlabors.fonts/index.json
OK http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/sixlabors.fonts/index.json 91ms
GET http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/sixlabors.imagesharp/index.json
OK http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/sixlabors.imagesharp/index.json 78ms
GET http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/system.text.encoding.codepages/5.0.0/system.text.encoding.codepages.5.0.0.nupkg
Forbidden http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/system.text.encoding.codepages/5.0.0/system.text.encoding.codepages.5.0.0.nupkg 3738ms
GET http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/castle.core/index.json
Failed to download package 'System.Text.Encoding.CodePages.5.0.0' from 'http://172.30.2.67:8080/tfs/DefaultCollection/_packaging/e83a612b-4fbe-46d1-9bf5-e514e3e7c5cd/nuget/v3/flat2/system.text.encoding.codepages/5.0.0/system.text.encoding.codepages.5.0.0.nupkg'.
Response status code does not indicate success: 403 (Forbidden).
Has someone an idea how to troubleshoot this problem?