[BUG]: InvalidCastException during String to StringEnum Conversion in WorkflowJobStatus Deserialization #551
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
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: