Skip to content

hype train version change on twitch API #362

@kreenox

Description

@kreenox

register event sub for hype train as twitch seems to be in version 2

  File "/media/nfs/blue/Programmation/python/elina/base/lib/python3.12/site-packages/twitchAPI/eventsub/base.py", line 878, in listen_hype_train_begin
    return await self._subscribe('channel.hype_train.begin', '1', {'broadcaster_user_id': broadcaster_user_id}, callback,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/media/nfs/blue/Programmation/python/elina/base/lib/python3.12/site-packages/twitchAPI/eventsub/websocket.py", line 241, in _subscribe
    raise EventSubSubscriptionError(result.get('message'))
twitchAPI.type.EventSubSubscriptionError: invalid subscription type and version

https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types#channelhype_trainbegin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions