You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Http response 403 will be received from a nuget repository hosted on premises, by msbuild in a subsequent step:
2023-11-08T09:24:21.4654314Z Assembly loaded during TaskRun (NuGet.Build.Tasks.RestoreTask): System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (location: C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll, MVID: 5806d44d-2724-471f-a988-a9d01d49624e, AppDomain: [Default]) (TaskId:48)
2023-11-08T09:24:21.4655023Z GET https://artifactory.***/artifactory/api/nuget/v3/di_dna_native_nuget/FindPackagesById()?id='***.CodeAnalysis.Analyzers'&semVerLevel=2.0.0 (TaskId:48)
2023-11-08T09:24:21.4655514Z GET https://artifactory.***/artifactory/api/nuget/v3/di_dna_native_nuget/FindPackagesById()?id='Microsoft.CodeAnalysis.NetAnalyzers'&semVerLevel=2.0.0 (TaskId:48)
2023-11-08T09:24:21.4656045Z Retrying 'FindPackagesByIdAsyncCore'forsource'https://artifactory.***/artifactory/api/nuget/v3/di_dna_native_nuget/FindPackagesById()?id='Microsoft.CodeAnalysis.NetAnalyzers'&semVerLevel=2.0.0'.
2023-11-08T09:24:21.4656340Z An error occurred while sending the request.
2023-11-08T09:24:21.4656547Z The remote server returned an error: (403) Forbidden. (TaskId:48)
Aditional info
Environment variable HTTP_PROXY/HTTPS_PROXY will be set by UseNode task with values from the agent configuration file '.proxy'. Unfortunately, NO_PROXY won't be set accordingly with values from file '.proxybypass'.See https://github.com/microsoft/azure-pipelines-tasks/blob/c10f72b6e11f0dc0efbbf8437aa6788918bcfa48/Tasks/UseNodeV1/proxyutil.ts#L19-L20Workaround 1: set NO_PROXY in a subsequent step for the current build job or for the step only.Workaround 2: set NO_PROXY globally on the agent host - this is not always an option.I propose to either set NO_PROXY too where HTTP_PROXY will be set - or to make setting of HTTP_PROXY optional with a checkbox (checked as default for sake of backward compatibility).
The text was updated successfully, but these errors were encountered:
In the meantime, I understand that the entries in .proxybypasslist can be dynamic patterns (regex), while those of the NO_PROXY variable are static ones (no regex, no wildcards). However, setting only the HTTP*_PROXY variable(s) still results in an incomplete state.
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Task name
UseNode
Task version
1.231.0
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows
Task log
Relevant log output
Aditional info
The text was updated successfully, but these errors were encountered: