Skip to content

SDK error when push_trigger_option is "default" in group channels #27

@MykhailoKlimchuk

Description

@MykhailoKlimchuk

Bug: list_my_group_channels fails due to invalid push_trigger_option value

Description

When calling list_my_group_channels, the API raises the following exception:

sendbird_platform_sdk.exceptions.ApiValueError:
Invalid value for `value` (default), must be one of ['all', 'mention_only', 'off']

Investigation details

I debugged the API response and found that the field push_trigger_option has the value "default" for all my returned channel entities.

However, according to the SDK validation, "default" is not a supported value. Only the following values are accepted:

  • all
  • mention_only
  • off
    allowed_values = {
        ('value',): {
            'ALL': "all",
            'MENTION_ONLY': "mention_only",
            'OFF': "off",
        },
    }

This causes the SDK to fail during response parsing, even though the API response itself is returned successfully.

Expected behavior

  • The API should not return "default" for push_trigger_option, or
  • The SDK should handle "default" as a valid value (e.g. map it to "all" or another default behavior).

Actual behavior
The SDK raises ApiValueError and the request fails.

Impact
This makes list_my_group_channels unusable when channels contain push_trigger_option = "default".

Please let me know if additional details, logs, or reproduction steps are required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions