Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encountered a problem while trying to record telemetry events #430

Open
Liturgist opened this issue Jan 31, 2024 · 0 comments
Open

Encountered a problem while trying to record telemetry events #430

Liturgist opened this issue Jan 31, 2024 · 0 comments
Labels
bug This relates to a bug in the existing module. triage needed An issue that needs to be reviewed by a member of the team.

Comments

@Liturgist
Copy link

Issue Details

The script uses Get-GitHubContent many times. After a number of uses it produces the following message for each one. I am doing as instructed and reporting it.

This is non-fatal, but it would be helpful if you could report this problem
to the PowerShellForGitHub team for further investigation:

Microsoft.PowerShell.Commands.HttpResponseException: Response status code does not indicate success: 400 (Bad Request).
   at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)

Steps to reproduce the issue

Use Get-GitHubContent many times. ???

Verbose logs showing the problem

2024-01-31 11:48:51 : lit : VERBOSE : Getting content for src/afile.ps1 in myrepo
2024-01-31 11:48:51 : lit : VERBOSE : Accessing [Get] https://api.github.com/repos/myorg/myrepo/contents/src/afile.ps1?ref=main [Timeout = 0)]
2024-01-31 11:48:51 : lit : ERROR :
Invoke-WebRequest: C:\users\lit\OneDrive\Documents\PowerShell\Modules\PowerShellForGitHub\0.17.0\GitHubCore.ps1:320
Line |
320 |              $result = Invoke-WebRequest @params
     |                        ~~~~~~~~~~~~~~~~~~~~~~~~~
     | {"message":"Not Found","documentation_url":"https://docs.github.com/rest/repos/contents#get-repository-content"}
2024-01-31 11:48:51 : lit : VERBOSE : [0.17.0] Executing: Set-TelemetryException -ErrorBucket "Get-GitHubContent"
2024-01-31 11:48:51 : lit : VERBOSE : Sending telemetry event data to https://dc.services.visualstudio.com/v2/track [Timeout = 0)]
2024-01-31 11:48:52 : lit : ERROR :
Invoke-WebRequest: C:\users\lit\OneDrive\Documents\PowerShell\Modules\PowerShellForGitHub\0.17.0\Telemetry.ps1:171
Line |
171 |          return Invoke-WebRequest @params
     |                 ~~~~~~~~~~~~~~~~~~~~~~~~~
     | {"itemsReceived":1,"itemsAccepted":0,"errors":[{"index":0,"statusCode":400,"message":"106: Field 'id' on type 'ExceptionDetails' is of incorrect type. Expected:
     | int"}]}

2024-01-31 11:48:52 : lit : WARNING : Encountered a problem while trying to record telemetry events.
2024-01-31 11:48:52 : lit : 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 PowerShellForGitHub team for further investigation:

Microsoft.PowerShell.Commands.HttpResponseException: Response status code does not indicate success: 400 (Bad Request).
   at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)

Suggested solution to the issue

Requested Assignment

Operating System

OsName               : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.3.8
PSEdition                      Core
GitCommitId                    7.3.8
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module Version

Running: 0.17.0
Installed: 0.17.0
@Liturgist Liturgist added bug This relates to a bug in the existing module. triage needed An issue that needs to be reviewed by a member of the team. labels Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This relates to a bug in the existing module. triage needed An issue that needs to be reviewed by a member of the team.
Projects
None yet
Development

No branches or pull requests

1 participant