Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventSub trigger sets Event Message ID as the Subscription ID #184

Open
Xemdo opened this issue Oct 21, 2022 · 2 comments
Open

EventSub trigger sets Event Message ID as the Subscription ID #184

Xemdo opened this issue Oct 21, 2022 · 2 comments
Labels
enhancement New feature or request event Relates to the `event` feature.

Comments

@Xemdo
Copy link
Contributor

Xemdo commented Oct 21, 2022

When triggering an event with "twitch event trigger", the tool will generate a single GUID that is shared in use for both the Subscription ID (.subscription.id in JSON) and the Twitch-Eventsub-Message-Id HTTP header.

While this isn't an issue in most cases, it became clear after adding in functionality for #176. In the SQLite database, it will use the ID given for both the subscription ID and the Message ID, which becomes problematic for specific use cases of reproducing issues. Basically, since they're intertwined, when you use the --subscription-id flag, it sets both, therefore never allowing a perfect reproduction of an event found in production.

@Xemdo
Copy link
Contributor Author

Xemdo commented Oct 21, 2022

Solution to this should be to add in another flag:
--event-id ; -I
Into the file https://github.com/twitchdev/twitch-cli/blob/main/cmd/events.go
And the behavior of --event-id and --subscription-id should be properly split downstream.

@Xemdo Xemdo added bug Something isn't working enhancement New feature or request event Relates to the `event` feature. and removed bug Something isn't working labels Oct 21, 2022
@SputNikPlop
Copy link
Contributor

This is complete code wise, should be a followup with better documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request event Relates to the `event` feature.
Projects
None yet
Development

No branches or pull requests

2 participants