twitch-cli icon indicating copy to clipboard operation
twitch-cli copied to clipboard

EventSub trigger sets `Twitch-Eventsub-Subscription-Type` to empty string

Open Nerixyz opened this issue 3 years ago • 0 comments

Running twitch event trigger channel.channel_points_custom_reward_redemption.add -F http://localhost:8080/eventsub -s {secret}, will set the Twitch-Eventsub-Subscription-Type header to ''.

Running the command will execute with the following values:

args[0] = 'channel.channel_points_custom_reward_redemption.add' https://github.com/twitchdev/twitch-cli/blob/f149736ea3ae7be26942d4c1fc60377d7e44fb83/cmd/events.go#L141 p.Event = 'channel.channel_points_custom_reward_redemption.add', p.Transport = 'eventsub' https://github.com/twitchdev/twitch-cli/blob/f149736ea3ae7be26942d4c1fc60377d7e44fb83/internal/events/trigger/trigger_event.go#L79 e = channel_points_redemption::Event https://github.com/twitchdev/twitch-cli/blob/f149736ea3ae7be26942d4c1fc60377d7e44fb83/internal/events/trigger/trigger_event.go#L121 transport = 'eventsub', trigger = 'channel.channel_points_custom_reward_redemption.add' ⚠️ this isn't a key into the map https://github.com/twitchdev/twitch-cli/blob/f149736ea3ae7be26942d4c1fc60377d7e44fb83/internal/events/types/_template/_event_name.go#L63-L65 https://github.com/twitchdev/twitch-cli/blob/f149736ea3ae7be26942d4c1fc60377d7e44fb83/internal/events/types/channel_points_redemption/redemption_event.go#L20-L25 p.Event = '' https://github.com/twitchdev/twitch-cli/blob/f149736ea3ae7be26942d4c1fc60377d7e44fb83/internal/events/trigger/forward_event.go#L71

Nerixyz avatar Jul 26 '22 10:07 Nerixyz