You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading Octokit.Webhooks.AspNetCore from 1.5.1 to 2.2.2 we noticed the test failed. we encountered an InvalidCastException while attempting to deserialize webhook payloads into the WorkflowJobStatus enum using the SimpleJsonSerializer in the Octokit.Webhooks library.
The error message is as following:
System.InvalidCastException : Invalid cast from 'System.String' to 'Octokit.Webhooks.Extensions.StringEnum1[[Octokit.Webhooks.Models.WorkflowJobEvent.WorkflowJobStatus, Octokit.Webhooks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxx]]'.`
Could you please provide guidance or a potential fix for this issue? Any help from the Octokit team would be greatly appreciated.
Versions
Octokit.Webhooks.AspNetCore v2.2.2
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
👋 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 labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
Monica-Zhang-git
changed the title
[BUG]: InvalidCastException during String to Enum Conversion in WorkflowJobStatus Deserialization
[BUG]: InvalidCastException during String to StringEnum Conversion in WorkflowJobStatus Deserialization
Aug 8, 2024
What happened?
What happened?
After upgrading Octokit.Webhooks.AspNetCore from 1.5.1 to 2.2.2 we noticed the test failed. we encountered an InvalidCastException while attempting to deserialize webhook payloads into the WorkflowJobStatus enum using the SimpleJsonSerializer in the Octokit.Webhooks library.
The error message is as following:
System.InvalidCastException : Invalid cast from 'System.String' to 'Octokit.Webhooks.Extensions.StringEnum
1[[Octokit.Webhooks.Models.WorkflowJobEvent.WorkflowJobStatus, Octokit.Webhooks, Version=2.0.0.0, Culture=neutral, PublicKeyToken=xxx]]'.`Could you please provide guidance or a potential fix for this issue? Any help from the Octokit team would be greatly appreciated.
Versions
Octokit.Webhooks.AspNetCore v2.2.2
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: