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

[BUG]: Fetching check runs for a commit results in a FormatException #39

Closed
1 task done
Misha-133 opened this issue Feb 3, 2024 · 1 comment
Closed
1 task done
Assignees
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented

Comments

@Misha-133
Copy link

Misha-133 commented Feb 3, 2024

What happened?

Fetching check runs for a commit results in a FormatException.

Steps to reproduce:

var cli = new GitHubClient(RequestAdapter.Create(new AnonymousAuthentificationProvider()));
var runs = await cli.Repos["discord-net"]["Discord.Net"].Commits["ef9b79672bbe4edd8bf68a809b947bb3cc501935"].CheckRuns.GetAsync();

Stack Trace:

System.FormatException: "One of the identified items was in an invalid format."
   in System.Text.Json.ThrowHelper.ThrowFormatException()
   in System.Text.Json.JsonElement.GetInt32()
   in Microsoft.Kiota.Serialization.Json.JsonParseNode.GetIntValue()
   in GitHub.Models.CheckRun.<GetFieldDeserializers>b__74_9(IParseNode n)
   in Microsoft.Kiota.Serialization.Json.JsonParseNode.AssignFieldValues[T](T item)
   in Microsoft.Kiota.Serialization.Json.JsonParseNode.GetObjectValue[T](ParsableFactory`1 factory)
   in Microsoft.Kiota.Serialization.Json.JsonParseNode.<GetCollectionOfObjectValues>d__17`1.MoveNext()
   in System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   in System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   in GitHub.Repos.Item.Item.Commits.Item.CheckRuns.CheckRunsGetResponse.<GetFieldDeserializers>b__14_0(IParseNode n)
   in Microsoft.Kiota.Serialization.Json.JsonParseNode.AssignFieldValues[T](T item)
   in Microsoft.Kiota.Serialization.Json.JsonParseNode.GetObjectValue[T](ParsableFactory`1 factory)
   in Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<SendAsync>d__20`1.MoveNext()
   in Microsoft.Kiota.Http.HttpClientLibrary.HttpClientRequestAdapter.<SendAsync>d__20`1.MoveNext()
   in GitHub.Repos.Item.Item.Commits.Item.CheckRuns.CheckRunsRequestBuilder.<GetAsync>d__2.MoveNext()

Versions

octokit/dotnet-sdk v0.0.6
.NET 8

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Misha-133 Misha-133 added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Feb 3, 2024
Copy link

github-actions bot commented Feb 3, 2024

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@kfcampbell kfcampbell added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Feb 5, 2024
@kfcampbell kfcampbell self-assigned this Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Bug Something isn't working as documented
Projects
Archived in project
Development

No branches or pull requests

2 participants