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 "subscribe to channel reward remove events" causing invalid subscription error #225

Closed
jayther opened this issue Feb 11, 2021 · 1 comment
Labels

Comments

@jayther
Copy link

jayther commented Feb 11, 2021

Bug Report

Code

const rewardRemoveSub = await eventSub.subscribeToChannelRewardRemoveEvents(userId, onRewardRemove);

Expected behavior

Return a subscription object with no error.

Actual Behavior

Fails to return a subscription object and throws a rejection with the following error:

HttpStatusCodeError: Encountered HTTP status code 400: Bad Request

Body:
{
  "error": "Bad Request",
  "status": 400,
  "message": "invalid subscription type and version"
}

Cause of Error

In: https://github.com/d-fischer/twitch/blob/versions/4.4/packages/twitch/src/API/Helix/EventSub/HelixEventSubApi.ts#L349

Typo: 'channel.channel_points_custom_rewards.remove'

Subscription type should be: 'channel.channel_points_custom_reward.remove'

Environment

  • Version: 4.4.7
  • Node Version: 12.16.1
  • Operating system: Windows 10
@jayther jayther added the bug label Feb 11, 2021
d-fischer pushed a commit that referenced this issue Feb 13, 2021
d-fischer added a commit that referenced this issue Feb 13, 2021
@d-fischer
Copy link
Member

I'm not sure why the merge didn't close this automatically, but this is fixed in 4.4.11. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants