microsoft / windows-dev-center-vsts-extension

Visual Studio Team Services (VSTS) extension for performing continuous delivery to the Windows Dev Center store from your automated CI builds
Other
42 stars 18 forks source link

V3 Publish Task Error due to Telemetry Reporting #122

Open softworkz opened 3 weeks ago

softworkz commented 3 weeks ago

I received this today using the V3 Publish Task:

2024-11-03T06:34:57.6890897Z ##[section]Starting: Publish Beta
2024-11-03T06:34:57.6900139Z ==============================================================================
2024-11-03T06:34:57.6900329Z Task         : Windows Store - Publish V3
2024-11-03T06:34:57.6900447Z Description  : Publish your app to the Windows Store
2024-11-03T06:34:57.6900595Z Version      : 3.0.23
2024-11-03T06:34:57.6900691Z Author       : Microsoft Corporation
2024-11-03T06:34:57.6900831Z Help         : Visit our GitHub repository for help on usage for [this task](https://github.com/Microsoft/windows-dev-center-vsts-extension/blob/master/docs/usage.md##windows-store---publish)
2024-11-03T06:34:57.6901269Z ==============================================================================
2024-11-03T06:34:58.8148551Z Loading dependencies
2024-11-03T06:35:06.2645285Z Loading task inputs
2024-11-03T06:35:06.4226206Z Setting Store Broker environment
2024-11-03T06:35:08.1341993Z Start publishing
2024-11-03T06:35:09.4739013Z 2024-11-03 06:35:09 : VssAdministrator : Telemetry is currently enabled.  It can be disabled by setting "$global:SBDisableTelemetry = $true". Refer to USAGE.md#telemetry for more information.  Stop seeing this message in the future by setting "$global:SBSuppressTelemetryReminder=$true"
2024-11-03T06:35:09.8879396Z ##[warning]2024-11-03 06:35:09 : VssAdministrator : Encountered a problem while trying to record telemetry events.
This is non-fatal, but it would be helpful if you could report this problem
to the StoreBroker team for further investigation:

System.Management.Automation.RuntimeException: The remote server returned an error: (400) Bad Request.
400 | Bad Request
Original body: {"name":"Microsoft.ApplicationInsights.66d83c523070489b886b09860e05e78a.Event","time":"2024-11-03T06:35:09.4882382Z","iKey":"4cdaa89f-33c5-46b4-ba5a-3befb5d8fe01","tags":{"ai.user.id":"6A8B77A22E0AF987428976E6858D21D0BFF69F9DB0BF2A0600A153C893B26629C7868B4F9961FEAB7A02A79C9B679D38BACF0A7BDBF478B111D6FA15F85B539A","ai.session.id":"c5cf416d-3ec1-4a04-b00d-f80ecce0715e","ai.application.ver":"2.1.23","ai.internal.sdkVersion":"2.0.1.33027"},"data":{"baseType":"ExceptionData","baseData":{"ver":2,"properties":{"DayOfWeek":"Sunday","Username":"6A8B77A22E0AF987428976E6858D21D0BFF69F9DB0BF2A0600A153C893B26629C7868B4F9961FEAB7A02A79C9B679D38BACF0A7BDBF478B111D6FA15F85B539A","ErrorBucket":"Get-Product","Message":"The remote server returned an error: (401) Unauthorized.","HResult":"0x80131509","SingleQuery":false,"ProductId":"","ClientRequestId":"","Request-ID":"a4f1c7bb-b503-45ed-8ed7-68b94bdd119f","WaitForCompletion":false,"UriFragment":"products?externalId=XXXXXXXXXXXXX\u0026resourceTypes=Application,AvatarItem,Bundle,InternetOfThings","AppId":"XXXXXXXXXXXXX","SpecifiedType":true},"handledAt":"UserCode","exceptions":[{"id":133750893095507472,"typeName":"System.Net.WebException","message":"The remote server returned an error: (401) Unauthorized.","hasFullStack":true,"parsedStack":[{"assembly":"StoreBroker","method":"\u003cunknown\u003e","fileName":null,"level":0,"line":null}]}]}}}
2024-11-03T06:35:09.9471666Z Attaching Store Broker log file D:\a\r1\a\SBLog.txt. You can download it alongside the agent logs.
2024-11-03T06:35:10.0371671Z ##[error]401 | Unauthorized
The remote server returned an error: (401) Unauthorized.
Request-ID: a4f1c7bb-b503-45ed-8ed7-68b94bdd119f
At D:\a\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\3.0.23\ps_modules\StoreBroker\StoreBroker\StoreIngest
ionApi.psm1:2722 char:17
+                 throw $newLineOutput
+                 ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (401 | Unauthori...d7-68b94bdd119f:String) [], RuntimeException
    + FullyQualifiedErrorId : 401 | Unauthorized
The remote server returned an error: (401) Unauthorized.
Request-ID: a4f1c7bb-b503-45ed-8ed7-68b94bdd119f

2024-11-03T06:35:10.0799900Z ##[section]Finishing: Publish Beta

It says non-fatal, but it errors the task.

Here's the SBLog.log:

2024-11-03 06:35:08 : VssAdministrator : VERBOSE : [2.1.23] Executing: Get-Product -AppId "XXXXXXXXXXXXX" -AccessToken <redacted> -Verbose:$false
2024-11-03 06:35:08 : VssAdministrator : VERBOSE : Using PROD service endpoint
2024-11-03 06:35:08 : VssAdministrator : VERBOSE : Getting product information for XXXXXXXXXXXXX
2024-11-03 06:35:08 : VssAdministrator : VERBOSE : Accessing [Get] https://api.partner.microsoft.com/v1.0/ingestion/products?externalId=XXXXXXXXXXXXX&resourceTypes=Application,AvatarItem,Bundle,InternetOfThings [Timeout = 300]
2024-11-03 06:35:09 : VssAdministrator : VERBOSE : Request-ID: a4f1c7bb-b503-45ed-8ed7-68b94bdd119f
2024-11-03 06:35:09 : VssAdministrator : ERROR : 401 | Unauthorized
The remote server returned an error: (401) Unauthorized.
Request-ID: a4f1c7bb-b503-45ed-8ed7-68b94bdd119f
2024-11-03 06:35:09 : VssAdministrator : VERBOSE : [2.1.23] Executing: Set-TelemetryException -ErrorBucket "Get-Product"
2024-11-03 06:35:09 : VssAdministrator : INFORMATIONAL : Telemetry is currently enabled.  It can be disabled by setting "$global:SBDisableTelemetry = $true". Refer to USAGE.md#telemetry for more information.  Stop seeing this message in the future by setting "$global:SBSuppressTelemetryReminder=$true"
2024-11-03 06:35:09 : VssAdministrator : VERBOSE : Sending telemetry event data to https://dc.services.visualstudio.com/v2/track [Timeout = 300]
2024-11-03 06:35:09 : VssAdministrator : ERROR : The remote server returned an error: (400) Bad Request.
400 | Bad Request
Original body: {"name":"Microsoft.ApplicationInsights.66d83c523070489b886b09860e05e78a.Event","time":"2024-11-03T06:35:09.4882382Z","iKey":"4cdaa89f-33c5-46b4-ba5a-3befb5d8fe01","tags":{"ai.user.id":"6A8B77A22E0AF987428976E6858D21D0BFF69F9DB0BF2A0600A153C893B26629C7868B4F9961FEAB7A02A79C9B679D38BACF0A7BDBF478B111D6FA15F85B539A","ai.session.id":"c5cf416d-3ec1-4a04-b00d-f80ecce0715e","ai.application.ver":"2.1.23","ai.internal.sdkVersion":"2.0.1.33027"},"data":{"baseType":"ExceptionData","baseData":{"ver":2,"properties":{"DayOfWeek":"Sunday","Username":"6A8B77A22E0AF987428976E6858D21D0BFF69F9DB0BF2A0600A153C893B26629C7868B4F9961FEAB7A02A79C9B679D38BACF0A7BDBF478B111D6FA15F85B539A","ErrorBucket":"Get-Product","Message":"The remote server returned an error: (401) Unauthorized.","HResult":"0x80131509","SingleQuery":false,"ProductId":"","ClientRequestId":"","Request-ID":"a4f1c7bb-b503-45ed-8ed7-68b94bdd119f","WaitForCompletion":false,"UriFragment":"products?externalId=XXXXXXXXXXXXX\u0026resourceTypes=Application,AvatarItem,Bundle,InternetOfThings","AppId":"XXXXXXXXXXXXX","SpecifiedType":true},"handledAt":"UserCode","exceptions":[{"id":133750893095507472,"typeName":"System.Net.WebException","message":"The remote server returned an error: (401) Unauthorized.","hasFullStack":true,"parsedStack":[{"assembly":"StoreBroker","method":"\u003cunknown\u003e","fileName":null,"level":0,"line":null}]}]}}}
2024-11-03 06:35:09 : VssAdministrator : WARNING : Encountered a problem while trying to record telemetry events.
This is non-fatal, but it would be helpful if you could report this problem
to the StoreBroker team for further investigation:

System.Management.Automation.RuntimeException: The remote server returned an error: (400) Bad Request.
400 | Bad Request
Original body: {"name":"Microsoft.ApplicationInsights.66d83c523070489b886b09860e05e78a.Event","time":"2024-11-03T06:35:09.4882382Z","iKey":"4cdaa89f-33c5-46b4-ba5a-3befb5d8fe01","tags":{"ai.user.id":"6A8B77A22E0AF987428976E6858D21D0BFF69F9DB0BF2A0600A153C893B26629C7868B4F9961FEAB7A02A79C9B679D38BACF0A7BDBF478B111D6FA15F85B539A","ai.session.id":"c5cf416d-3ec1-4a04-b00d-f80ecce0715e","ai.application.ver":"2.1.23","ai.internal.sdkVersion":"2.0.1.33027"},"data":{"baseType":"ExceptionData","baseData":{"ver":2,"properties":{"DayOfWeek":"Sunday","Username":"6A8B77A22E0AF987428976E6858D21D0BFF69F9DB0BF2A0600A153C893B26629C7868B4F9961FEAB7A02A79C9B679D38BACF0A7BDBF478B111D6FA15F85B539A","ErrorBucket":"Get-Product","Message":"The remote server returned an error: (401) Unauthorized.","HResult":"0x80131509","SingleQuery":false,"ProductId":"","ClientRequestId":"","Request-ID":"a4f1c7bb-b503-45ed-8ed7-68b94bdd119f","WaitForCompletion":false,"UriFragment":"products?externalId=XXXXXXXXXXXXX\u0026resourceTypes=Application,AvatarItem,Bundle,InternetOfThings","AppId":"XXXXXXXXXXXXX","SpecifiedType":true},"handledAt":"UserCode","exceptions":[{"id":133750893095507472,"typeName":"System.Net.WebException","message":"The remote server returned an error: (401) Unauthorized.","hasFullStack":true,"parsedStack":[{"assembly":"StoreBroker","method":"\u003cunknown\u003e","fileName":null,"level":0,"line":null}]}]}}}