Skip to content

bug: Task page fails to load after configuring webhooks #8342

@minitriga

Description

@minitriga

Component

Frontend UI

Infrahub version

1.7.4

Current Behavior

Image
index-DgAzZxpo.js:76 [GraphQL error]: Message: Cannot return null for non-nullable field TaskRelatedNode.kind., Location: [{"line":19,"column":11}], Path: InfrahubTask,edges,9,node,related_nodes,0,kind

All API requests return 200.

{
    "data": {
        "InfrahubTask": {
            "count": 1399,
            "edges": [
                {
                    "node": {
                        "created_at": "2026-02-09T16:07:07.209299Z",
                        "id": "286b668d-a146-498b-b15b-c261d7d72bf2",
                        "branch": "main",
                        "related_node": null,
                        "related_nodes": [],
                        "title": "Trigger updates for computed attributes on branch main for NetworkInterface.description",
                        "updated_at": "2026-02-09T16:07:07.892572Z",
                        "state": "COMPLETED",
                        "progress": null,
                        "workflow": "trigger_update_python_computed_attributes",
                        "__typename": "TaskNode"
                    },
                    "__typename": "TaskNodes"
                },
                {
                    "node": {
                        "created_at": "2026-02-09T16:07:06.099606Z",
                        "id": "b861f67e-d751-41a7-a996-29afc2c1ea35",
                        "branch": "main",
                        "related_node": null,
                        "related_nodes": [],
                        "title": "Setup computed attributes for Python transforms in task-manager",
                        "updated_at": "2026-02-09T16:07:07.493475Z",
                        "state": "COMPLETED",
                        "progress": null,
                        "workflow": "computed-attribute-setup-python",
                        "__typename": "TaskNode"
                    },
                    "__typename": "TaskNodes"
                },
                {
                    "node": {
                        "created_at": "2026-02-09T16:07:03.149605Z",
                        "id": "a7e5c639-96c2-4f78-a5a7-f9ddc32ffedb",
                        "branch": "main",
                        "related_node": "18929d45-e491-707c-3021-c51214b4fbf7",
                        "related_nodes": [
                            {
                                "id": "18929d45-e491-707c-3021-c51214b4fbf7",
                                "kind": "CoreRepository",
                                "__typename": "TaskRelatedNode"
                            }
                        ],
                        "title": "Import Python file",
                        "updated_at": "2026-02-09T16:07:04.125842Z",
                        "state": "COMPLETED",
                        "progress": null,
                        "workflow": "import-python-files",
                        "__typename": "TaskNode"
                    },
                    "__typename": "TaskNodes"
                },
                {
                    "node": {
                        "created_at": "2026-02-09T16:07:01.469586Z",
                        "id": "0a84220c-3fc0-42e2-8932-a97347cdca47",
                        "branch": "main",
                        "related_node": "18929d45-e491-707c-3021-c51214b4fbf7",
                        "related_nodes": [
                            {
                                "id": "18929d45-e491-707c-3021-c51214b4fbf7",
                                "kind": "CoreRepository",
                                "__typename": "TaskRelatedNode"
                            }
                        ],
                        "title": "Import objects",
                        "updated_at": "2026-02-09T16:07:05.963470Z",
                        "state": "COMPLETED",
                        "progress": null,
                        "workflow": "import-object-from-file",
                        "__typename": "TaskNode"
                    },
                    "__typename": "TaskNodes"
                },
                {
                    "node": {
                        "created_at": "2026-02-09T16:06:12.636136Z",
                        "id": "ded42e52-b05c-4a0c-916a-fdccf4f7f529",
                        "branch": "avd",
                        "related_node": null,
                        "related_nodes": [],
                        "title": "Delete branch avd",
                        "updated_at": "2026-02-09T16:06:14.741600Z",
                        "state": "FAILED",
                        "progress": null,
                        "workflow": "branch-delete",
                        "__typename": "TaskNode"
                    },
                    "__typename": "TaskNodes"
                },
                {
                    "node": {
                        "created_at": "2026-02-09T16:02:45.519682Z",
                        "id": "808934db-ed6b-4e30-98f7-26a5dc849799",
                        "branch": "avd",
                        "related_node": null,
                        "related_nodes": [],
                        "title": "Query for potential targets of computed attributes for NetworkInterface",
                        "updated_at": "2026-02-09T16:02:51.268525Z",
                        "state": "COMPLETED",
                        "progress": null,
                        "workflow": "query-computed-attribute-transform-targets",
                        "__typename": "TaskNode"
                    },
                    "__typename": "TaskNodes"
                },
                {
                    "node": {
                        "created_at": "2026-02-09T16:02:45.680089Z",
                        "id": "5ce116a4-b923-4cc8-a395-5ffdf488ba80",
                        "branch": "avd",
                        "related_node": null,
                        "related_nodes": [],
                        "title": "Query for potential targets of computed attributes for NetworkInterface",
                        "updated_at": "2026-02-09T16:02:51.243429Z",
                        "state": "COMPLETED",
                        "progress": null,
                        "workflow": "query-computed-attribute-transform-targets",
                        "__typename": "TaskNode"
                    },
                    "__typename": "TaskNodes"
                },
                {
                    "node": {
                        "created_at": "2026-02-09T16:02:44.707705Z",
                        "id": "e4dfcc63-3d30-463b-b8e8-4bed6126f0eb",
                        "branch": "avd",
                        "related_node": null,
                        "related_nodes": [],
                        "title": "Query for potential targets of computed attributes for NetworkInterface",
                        "updated_at": "2026-02-09T16:02:49.763494Z",
                        "state": "COMPLETED",
                        "progress": null,
                        "workflow": "query-computed-attribute-transform-targets",
                        "__typename": "TaskNode"
                    },
                    "__typename": "TaskNodes"
                },
                {
                    "node": {
                        "created_at": "2026-02-09T16:02:43.386084Z",
                        "id": "73c9e31b-2479-4bf6-8aa9-aaea72af3c3e",
                        "branch": "avd",
                        "related_node": null,
                        "related_nodes": [],
                        "title": "Query for potential targets of computed attributes for NetworkInterface",
                        "updated_at": "2026-02-09T16:02:50.041960Z",
                        "state": "COMPLETED",
                        "progress": null,
                        "workflow": "query-computed-attribute-transform-targets",
                        "__typename": "TaskNode"
                    },
                    "__typename": "TaskNodes"
                },
                {
                    "node": {
                        "created_at": "2026-02-09T16:02:44.085176Z",
                        "id": "a99c2cb3-397a-4ca6-bea3-85e12c2187b1",
                        "branch": "avd",
                        "related_node": "18929f55-6be7-1528-302c-c51c0974c87c",
                        "related_nodes": [
                            null
                        ],
                        "title": "Process computed attribute for NetworkInterface.description",
                        "updated_at": "2026-02-09T16:02:51.401303Z",
                        "state": "COMPLETED",
                        "progress": null,
                        "workflow": "computed_attribute_process_transform",
                        "__typename": "TaskNode"
                    },
                    "__typename": "TaskNodes"
                }
            ],
            "__typename": "Tasks"
        }
    },
    "errors": [
        {
            "message": "Cannot return null for non-nullable field TaskRelatedNode.kind.",
            "locations": [
                {
                    "line": 19,
                    "column": 11
                }
            ],
            "path": [
                "InfrahubTask",
                "edges",
                9,
                "node",
                "related_nodes",
                0,
                "kind"
            ]
        }
    ]
}

Expected Behavior

Tasks page loads always.

Steps to Reproduce

Start a generator in my instance

Additional Information

No response

Metadata

Metadata

Assignees

Labels

state/need-more-infoThis issue needs more informationtype/bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions