keel icon indicating copy to clipboard operation
keel copied to clipboard

Github Webhook Broken

Open DevSlashRichie opened this issue 3 years ago • 0 comments

When a webhook arrives with the Github payload I got this error at my service:

time="2022-01-04T23:37:59Z" level=error msg="trigger.githubHandler: failed to decode request" error="json: cannot unmarshal object into Go struct field .registry_package.package_version.body of type string"

Also this is what registry_package.package_version.body contains:

"body": {
                "repository": {
                    "repository": {
                        "id": Number,
                        "name": String,
                        "owner_id": Number,
                        "parent_id": null,
                        "sandbox": null,
                        "updated_at": "2022-01-04T22:24:29.000Z",
                        "created_at": "2021-11-28T16:52:04.000Z",
                        "public": false,
                        "description": null,
                        "homepage": null,
                        "source_id": Number,
                        "public_push": null,
                        "disk_usage": 210,
                        "locked": false,
                        "pushed_at": "2022-01-04T22:24:25.000Z",
                        "watcher_count": 0,
                        "public_fork_count": 0,
                        "primary_language_name_id": 140,
                        "has_issues": true,
                        "has_wiki": true,
                        "has_downloads": true,
                        "raw_data": {
                            "data": {
                                "created_by_user_id": Number,
                                "primary_language_name": "JavaScript",
                                "completed_onboarding_tasks": []
                            }
                        },
                        "organization_id": Number,
                        "disabled_at": null,
                        "disabled_by": null,
                        "disabling_reason": null,
                        "health_status": null,
                        "pushed_at_usec": Number,
                        "active": true,
                        "reflog_sync_enabled": false,
                        "made_public_at": null,
                        "user_hidden": 0,
                        "maintained": true,
                        "template": false,
                        "owner_login": String,
                        "world_writable_wiki": false,
                        "refset_updated_at": "2022-01-03T18:44:43.109Z",
                        "properties_version": 2,
                        "disabling_detail": null
                    }
                },

DevSlashRichie avatar Jan 04 '22 23:01 DevSlashRichie