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
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.Steps to reproduce the issue
Use
Get-GitHubContent
many times. ???Verbose logs showing the problem
Suggested solution to the issue
Requested Assignment
Operating System
PowerShell Version
Module Version