Skip to content

[🐛 Bug]: site24x7 LABELS still not passed correctly to AlertDto after #6196 #6527

@Jleee713

Description

@Jleee713

Bug Description

Issue #6196 was previously reported and closed with PRs #6210 and #6201, but the labels
are still not appearing on alerts in Keep.

Root Cause

The fix in the previous PRs added extraction of LABELS from the webhook payload, but
parsed it as a list of strings. AlertDto.labels is typed as dict | None, so passing
a list causes pydantic to silently drop the value — resulting in "labels": {} on every alert.

Fix

Parse the LABELS string (e.g. "env:prod,team:sre") into a dict ({"env": "prod", "team": "sre"}).

This is addressed in PR #6526.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions