Skip to content

[9.0.1xx] The Component Detection tool partially succeeded with InvalidComponentVersionException #5002

Open
@Winniexu01

Description

@Winniexu01

https://dev.azure.com/dnceng/internal/_build/results?buildId=2678135&view=logs&j=609589e2-4f74-5576-cdb7-914bcaea778b&t=fa109728-0199-5dd2-1360-ccbb7bc9b435 (internal Microsoft link)

Microsoft.VisualStudio.Services.Governance.Contracts.InvalidComponentVersionException: The provided version '{MicrosoftVisualStudioCoreUtilityVersion}' was not valid.
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.HandleResponseAsync(HttpResponseMessage response, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpMethod method, IEnumerable`1 additionalHeaders, Guid locationId, Object routeValues, ApiResourceVersion version, HttpContent content, IEnumerable`1 queryParameters, Object userState, CancellationToken cancellationToken)
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.PostSnapshotRequestWithRetryAsync(ComponentGovernanceHttpClient govClient, SubmittedRegistrationRequestsTelemetryRecord record, SnapshotRequest snapshotRequest, Uri url, Nullable`1 requesterUserGuid, String projectString) in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 178
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.<>c__DisplayClass15_0.<<PostRegistrationRequests>b__0>d.MoveNext() in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 127
--- End of stack trace from previous location ---
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.<>c__DisplayClass32_0`1.<<TrackedClientOperation>b__0>d.MoveNext() in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 830
--- End of stack trace from previous location ---
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.TrackedClientOperationInternal[TReturnType,TRecord](Uri url, String pat, Func`3 invoker) in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 886
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.TrackedClientOperation[TRecord](Uri url, String pat, Func`3 invoker) in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 828
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.GovernanceClientService.PostRegistrationRequests(SnapshotRequest snapshotRequest, Uri url, String pat, WarnOnAlertSeverity minimumSeverity, Boolean failOnAlert, String requesterUserId, String overriddenProjectId, Boolean showAlertLink, Nullable`1 timeoutSeconds, CancellationToken token) in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/GovernanceClientService.cs:line 125
   at Microsoft.ComponentDetection.Internal.AzureDevOps.Services.ComponentDetectionCommandService.ExecuteInternalCommandAsync(CommandContext context, DetectionSettings settings, CancellationToken token) in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/Services/ComponentDetectionCommandService.cs:line 221
   at Microsoft.ComponentDetection.Internal.AzureDevOps.InternalAsyncCommand`1.<>c__DisplayClass7_0.<<Dispatch>b__0>d.MoveNext() in /mnt/vss/_work/1/s/ComponentDetection/src/Microsoft.ComponentDetection.Internal.Orchestrator/InternalAsyncCommand.cs:line 161
For more information about configuring the build task please visit: https://aka.ms/cgbuildtaskdocs
##[warning]The Component Detection tool partially succeeded. See the logs for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-upstream-fixNeeds a change in a contributing repoops-monitorIssues created/handled by the source build monitor role

    Type

    No type

    Projects

    Status

    Blocked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions