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
InvalidFormatException: Cannot deserialize value of type org.kohsuke.github.GHEvent
from String "workflow_dispatch"
#854
Comments
Could you turn on FINE logging level and produce this?
There's not enough info in the exception to know what is causing this. |
First, this is the unit test allowing to reproduce this issue:
|
Now, the trace at level FINE:
|
@didier-durand Thanks! After formatting the message it is easy to see where the failure is occurring - "events": ["check_run", "check_suite", "create", "delete", "deployment", "deployment_status", "fork", "gollum", "issues", "issue_comment", "label", "milestone", "page_build", "project", "project_card", "project_column", "public", "pull_request", "pull_request_review", "pull_request_review_comment", "push", "registry_package", "release", "repository", "repository_dispatch", "status", "watch", "workflow_dispatch"] This is present because this webhook event type is present and checked for the app. As a short-term workaround, you could uncheck this box for your app. The basic fix is to add this to the list of allowed events. The full message in formatted form: {
"total_count": 4,
"check_runs": [{
"id": 802017510,
"node_id": "MDg6Q2hlY2tSdW44MDIwMTc1MTA=",
"head_sha": "a7d29afe7cfafba5db372b2ff20ee999932c16d2",
"external_id": "ca395085-040a-526b-2ce8-bdc85f692774",
"url": "https://api.github.com/repos/didier-durand/github-repository-name/check-runs/802017510",
"html_url": "https://github.com/didier-durand/github-repository-name/runs/802017510",
"details_url": "https://github.com/didier-durand/github-repository-name/runs/802017510",
"status": "in_progress",
"conclusion": null,
"started_at": "2020-06-24T04:23:51Z",
"completed_at": null,
"output": {
"title": null,
"summary": null,
"text": null,
"annotations_count": 0,
"annotations_url": "https://api.github.com/repos/didier-durand/github-repository-name/check-runs/802017510/annotations"
},
"name": "build",
"check_suite": {
"id": 834102733
},
"app": {
"id": 15368,
"slug": "github-actions",
"node_id": "MDM6QXBwMTUzNjg=",
"owner": {
"login": "github",
"id": 9919,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
"avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github",
"html_url": "https://github.com/github",
"followers_url": "https://api.github.com/users/github/followers",
"following_url": "https://api.github.com/users/github/following{/other_user}",
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
"organizations_url": "https://api.github.com/users/github/orgs",
"repos_url": "https://api.github.com/users/github/repos",
"events_url": "https://api.github.com/users/github/events{/privacy}",
"received_events_url": "https://api.github.com/users/github/received_events",
"type": "Organization",
"site_admin": false
},
"name": "GitHub Actions",
"description": "Automate your workflow from idea to production",
"external_url": "https://help.github.com/en/actions",
"html_url": "https://github.com/apps/github-actions",
"created_at": "2018-07-30T09:30:17Z",
"updated_at": "2019-12-10T19:04:12Z",
"permissions": {
"actions": "write",
"checks": "write",
"contents": "write",
"deployments": "write",
"issues": "write",
"metadata": "read",
"packages": "write",
"pages": "write",
"pull_requests": "write",
"repository_hooks": "write",
"repository_projects": "write",
"security_events": "write",
"statuses": "write",
"vulnerability_alerts": "read"
},
"events": ["check_run", "check_suite", "create", "delete", "deployment", "deployment_status", "fork", "gollum", "issues", "issue_comment", "label", "milestone", "page_build", "project", "project_card", "project_column", "public", "pull_request", "pull_request_review", "pull_request_review_comment", "push", "registry_package", "release", "repository", "repository_dispatch", "status", "watch", "workflow_dispatch"]
},
"pull_requests": []
}, {
"id": 801982365,
"node_id": "MDg6Q2hlY2tSdW44MDE5ODIzNjU=",
"head_sha": "a7d29afe7cfafba5db372b2ff20ee999932c16d2",
"external_id": "ca395085-040a-526b-2ce8-bdc85f692774",
"url": "https://api.github.com/repos/didier-durand/github-repository-name/check-runs/801982365",
"html_url": "https://github.com/didier-durand/github-repository-name/runs/801982365",
"details_url": "https://github.com/didier-durand/github-repository-name/runs/801982365",
"status": "completed",
"conclusion": "success",
"started_at": "2020-06-24T04:05:49Z",
"completed_at": "2020-06-24T04:08:24Z",
"output": {
"title": null,
"summary": null,
"text": null,
"annotations_count": 0,
"annotations_url": "https://api.github.com/repos/didier-durand/github-repository-name/check-runs/801982365/annotations"
},
"name": "build",
"check_suite": {
"id": 834063068
},
"app": {
"id": 15368,
"slug": "github-actions",
"node_id": "MDM6QXBwMTUzNjg=",
"owner": {
"login": "github",
"id": 9919,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=",
"avatar_url": "https://avatars1.githubusercontent.com/u/9919?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github",
"html_url": "https://github.com/github",
"followers_url": "https://api.github.com/users/github/followers",
"following_url": "https://api.github.com/users/github/following{/other_user}",
"gists_url": "https://api.github.com/users/github/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github/subscriptions",
"organizations_url": "https://api.github.com/users/github/orgs",
"repos_url": "https://api.github.com/users/github/repos",
"events_url": "https://api.github.com/users/github/events{/privacy}",
"received_events_url": "https://api.github.com/users/github/received_events",
"type": "Organization",
"site_admin": false
},
"name": "GitHub Actions",
"description": "Automate your workflow from idea to production",
"external_url": "https://help.github.com/en/actions",
"html_url": "https://github.com/apps/github-actions",
"created_at": "2018-07-30T09:30:17Z",
"updated_at": "2019-12-10T19:04:12Z",
"permissions": {
"actions": "write",
"checks": "write",
"contents": "write",
"deployments": "write",
"issues": "write",
"metadata": "read",
"packages": "write",
"pages": "write",
"pull_requests": "write",
"repository_hooks": "write",
"repository_projects": "write",
"security_events": "write",
"statuses": "write",
"vulnerability_alerts": "read"
},
"events": ["check_run", "check_suite", "create", "delete", "deployment", "deployment_status", "fork", "gollum", "issues", "issue_comment", "label", "milestone", "page_build", "project", "project_card", "project_column", "public", "pull_request", "pull_request_review", "pull_request_review_comment", "push", "registry_package", "release", "repository", "repository_dispatch", "status", "watch", "workflow_dispatch"]
},
"pull_requests": []
}, {
"id": 801982257,
"node_id": "MDg6Q2hlY2tSdW44MDE5ODIyNTc=",
"head_sha": "a7d29afe7cfafba5db372b2ff20ee999932c16d2",
"external_id": "Jv+BAwEBCkV4dGVybmFsSUQB/4IAAQEBCVRyaWdnZXJJRAEMAAAAKf+CASQ1ZDY3NjI4OC1mNmRhLTRjZDktOTM1Yi05OWE2NjNkZTg4MGEA",
"url": "https://api.github.com/repos/didier-durand/github-repository-name/check-runs/801982257",
"html_url": "https://github.com/didier-durand/github-repository-name/runs/801982257",
"details_url": "https://console.cloud.google.com/cloud-build/triggers/edit/5d676288-f6da-4cd9-935b-99a663de880a?project=697176778682",
"status": "completed",
"conclusion": "neutral",
"started_at": "2020-06-24T04:05:39Z",
"completed_at": "2020-06-24T04:05:39Z",
"output": {
"title": "Summary",
"summary": "Changed files did not match file filter",
"text": null,
"annotations_count": 0,
"annotations_url": "https://api.github.com/repos/didier-durand/github-repository-name/check-runs/801982257/annotations"
},
"name": "Trigger: 5d676288-f6da-4cd9-935b-99a663de880a",
"check_suite": {
"id": 834063042
},
"app": {
"id": 10529,
"slug": "google-cloud-build",
"node_id": "MDM6QXBwMTA1Mjk=",
"owner": {
"login": "GoogleCloudBuild",
"id": 38220399,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MjIwMzk5",
"avatar_url": "https://avatars2.githubusercontent.com/u/38220399?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/GoogleCloudBuild",
"html_url": "https://github.com/GoogleCloudBuild",
"followers_url": "https://api.github.com/users/GoogleCloudBuild/followers",
"following_url": "https://api.github.com/users/GoogleCloudBuild/following{/other_user}",
"gists_url": "https://api.github.com/users/GoogleCloudBuild/gists{/gist_id}",
"starred_url": "https://api.github.com/users/GoogleCloudBuild/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GoogleCloudBuild/subscriptions",
"organizations_url": "https://api.github.com/users/GoogleCloudBuild/orgs",
"repos_url": "https://api.github.com/users/GoogleCloudBuild/repos",
"events_url": "https://api.github.com/users/GoogleCloudBuild/events{/privacy}",
"received_events_url": "https://api.github.com/users/GoogleCloudBuild/received_events",
"type": "Organization",
"site_admin": false
},
"name": "Google Cloud Build",
"description": "Google Cloud Build lets you create fast, consistent, reliable builds across all languages. Automatically build containers or non-container artifacts on commits to your GitHub repository. \r\n\r\nGet complete control over defining custom workflows for building, testing, and deploying across multiple environments such as VMs, Serverless, Kubernetes, or Firebase.",
"external_url": "https://cloud.google.com/cloud-build/",
"html_url": "https://github.com/apps/google-cloud-build",
"created_at": "2018-03-29T13:50:34Z",
"updated_at": "2019-03-11T19:46:50Z",
"permissions": {
"checks": "write",
"contents": "read",
"issues": "read",
"metadata": "read",
"pull_requests": "read",
"statuses": "write"
},
"events": ["check_run", "check_suite", "commit_comment", "issue_comment", "label", "pull_request", "push"]
},
"pull_requests": []
}, {
"id": 801982228,
"node_id": "MDg6Q2hlY2tSdW44MDE5ODIyMjg=",
"head_sha": "a7d29afe7cfafba5db372b2ff20ee999932c16d2",
"external_id": "Jv+BAwEBCkV4dGVybmFsSUQB/4IAAQEBCVRyaWdnZXJJRAEMAAAAKf+CASQ3MjJhZGJkZi1mYjVmLTQ2NDUtODg4Ny00MjdmNmNlMDUxNDkA",
"url": "https://api.github.com/repos/didier-durand/github-repository-name/check-runs/801982228",
"html_url": "https://github.com/didier-durand/github-repository-name/runs/801982228",
"details_url": "https://console.cloud.google.com/cloud-build/triggers/edit/722adbdf-fb5f-4645-8887-427f6ce05149?project=697176778682",
"status": "completed",
"conclusion": "neutral",
"started_at": "2020-06-24T04:05:38Z",
"completed_at": "2020-06-24T04:05:38Z",
"output": {
"title": "Summary",
"summary": "Changed files did not match file filter",
"text": null,
"annotations_count": 0,
"annotations_url": "https://api.github.com/repos/didier-durand/github-repository-name/check-runs/801982228/annotations"
},
"name": "Trigger: 722adbdf-fb5f-4645-8887-427f6ce05149",
"check_suite": {
"id": 834063042
},
"app": {
"id": 10529,
"slug": "google-cloud-build",
"node_id": "MDM6QXBwMTA1Mjk=",
"owner": {
"login": "GoogleCloudBuild",
"id": 38220399,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MjIwMzk5",
"avatar_url": "https://avatars2.githubusercontent.com/u/38220399?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/GoogleCloudBuild",
"html_url": "https://github.com/GoogleCloudBuild",
"followers_url": "https://api.github.com/users/GoogleCloudBuild/followers",
"following_url": "https://api.github.com/users/GoogleCloudBuild/following{/other_user}",
"gists_url": "https://api.github.com/users/GoogleCloudBuild/gists{/gist_id}",
"starred_url": "https://api.github.com/users/GoogleCloudBuild/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GoogleCloudBuild/subscriptions",
"organizations_url": "https://api.github.com/users/GoogleCloudBuild/orgs",
"repos_url": "https://api.github.com/users/GoogleCloudBuild/repos",
"events_url": "https://api.github.com/users/GoogleCloudBuild/events{/privacy}",
"received_events_url": "https://api.github.com/users/GoogleCloudBuild/received_events",
"type": "Organization",
"site_admin": false
},
"name": "Google Cloud Build",
"description": "Google Cloud Build lets you create fast, consistent, reliable builds across all languages. Automatically build containers or non-container artifacts on commits to your GitHub repository. \r\n\r\nGet complete control over defining custom workflows for building, testing, and deploying across multiple environments such as VMs, Serverless, Kubernetes, or Firebase.",
"external_url": "https://cloud.google.com/cloud-build/",
"html_url": "https://github.com/apps/google-cloud-build",
"created_at": "2018-03-29T13:50:34Z",
"updated_at": "2019-03-11T19:46:50Z",
"permissions": {
"checks": "write",
"contents": "read",
"issues": "read",
"metadata": "read",
"pull_requests": "read",
"statuses": "write"
},
"events": ["check_run", "check_suite", "commit_comment", "issue_comment", "label", "pull_request", "push"]
},
"pull_requests": []
}]
} |
This event is undocumented at this time, but this change will stop the deserialization errors. Fixes #854
Good. So, nothing additional expected from me at this point? |
@didier-durand |
On retrieval of GHCheckRuns (libb version = 1.114) for a given repository, the http request works fine (http code = 200) but we get the stack trace given below: it seems that type "workflow_dispatch" is not supported among the other types given:
It seems that this is a new issue :
corresponding JUnit test was working fine before, IIRC.
Stack trace :
The text was updated successfully, but these errors were encountered: