octokit.net: a Server Error has occurred
Exception : System.AggregateException: One or more errors occurred. —> Octokit.ApiException: Server Error
at Octokit.Connection.HandleErrors(IResponse response)
at Octokit.Connection.<RunRequest>d__58.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Octokit.Connection.<Run>d__571.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Octokit.Internal.ReadOnlyPagedCollection1.<GetNextPage>d__3.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Octokit.ApiPagination.<GetAllPages>d__01.MoveNext()
— End of inner exception stack trace —
—> (Inner Exception #0) Octokit.ApiException: Server Error
at Octokit.Connection.HandleErrors(IResponse response)
at Octokit.Connection.<RunRequest>d__58.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Octokit.Connection.<Run>d__571.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Octokit.Internal.ReadOnlyPagedCollection1.<GetNextPage>d__3.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at Octokit.ApiPagination.<GetAllPages>d__01.MoveNext()
{
“message”: “Server Error”
}
$options = New-Object octokit.apioptions
$options.PageSize = 100
$issueRequest = New-Object Octokit.RepositoryIssueRequest
$issueRequest.State = "All"
$issueRequest.Filter = "All"
$issues = gitHubClient.Issue.GetAllForRepository($repo.Id, $issueRequest, $options)
// $Repo is defined elsewhere and is valid
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (10 by maintainers)
I’d love to review any improvements or ideas you have here