Skip to content

System.NullReferenceException: Object reference not set to an instance of an object. at GitHubClient.GitHubApi.GetItem[T] #92

@danmoseley

Description

@danmoseley

https://github.com/dotnet/aspire/actions/runs/13751888678/job/38453871652

network glitch? is there a missing error check/retry here?

[Pull Request #3656] Queued for prediction.
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at GitHubClient.GitHubApi.GetItem[T](String githubToken, String org, String repo, UInt64 number, String itemQueryName) in /home/runner/work/aspire/aspire/src/GitHubClient/GitHubApi.cs:line 255
   at GitHubClient.GitHubApi.GetPullRequest(String githubToken, String org, String repo, UInt64 number) in /home/runner/work/aspire/aspire/src/GitHubClient/GitHubApi.cs:line 221
   at Program.<Main>$(String[] args) in /home/runner/work/aspire/aspire/src/Predictor/Predictor.cs:line 55
   at Program.<Main>(String[] args)
/home/runner/work/_temp/b62b21c0-ce8d-4efe-88f0-1a06fad6ebbe.sh: line 8:  1794 Aborted                 (core dumped) ./labeler-build/Predictor/Predictor --token "***" --repo "dotnet/aspire" --pull-model "labeler-cache/pull-model.zip" --pull-numbers "1-10000" --label-prefix "area-" --threshold 0.4 --default-label "needs-area-label"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions