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

[Bug] Bits Badge Event doesn't trigger due to error #2532

Open
1 task done
dennisrijsdijk opened this issue Apr 28, 2024 · 1 comment
Open
1 task done

[Bug] Bits Badge Event doesn't trigger due to error #2532

dennisrijsdijk opened this issue Apr 28, 2024 · 1 comment
Labels
Bug A defect in the app EventSub Depends on Twitch EventSub functionality
Projects

Comments

@dennisrijsdijk
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Whenever a viewer unlocks a bits badge and sends the "bits badge unlocked" message/alert through Twitch, Firebot doesn't detect the bits badge event and throws the error shown below

Expected Behavior

Firebot should not throw any error, and should process the bits badge event.

Steps To Reproduce

  1. Have an Affiliate or Partner channel.
  2. Have a viewer unlock a bits badge.
  3. Have the viewer share the bits badge message/alert.
  4. Observe error in developer console or log file.

Version

5.62.1

What operating system are you using Firebot on?

Windows 11

Relevant log output

[2024-04-28 20:55:39.0552] - error: [v5.62.1] TypeError: Cannot read properties of undefined (reading 'user_name')
    at get userName [as userName] (C:\Users\danhu\AppData\Local\firebot\app-5.62.1\resources\app.asar\node_modules\@twurple\pubsub\lib\messages\PubSubBitsBadgeUnlockMessage.js:20:50)
    at PubSubHandler._callback (C:\Users\danhu\AppData\Local\firebot\app-5.62.1\resources\app.asar\build\backend\twitch-api\pubsub\pubsub-client.js:63:70)
    at PubSubHandler.call (C:\Users\danhu\AppData\Local\firebot\app-5.62.1\resources\app.asar\node_modules\@twurple\pubsub\lib\PubSubHandler.js:38:14)
    at C:\Users\danhu\AppData\Local\firebot\app-5.62.1\resources\app.asar\node_modules\@twurple\pubsub\lib\PubSubClient.js:63:33
    at BasicPubSubClient.emit (C:\Users\danhu\AppData\Local\firebot\app-5.62.1\resources\app.asar\node_modules\@d-fischer\typed-event-emitter\lib\EventEmitter.js:31:17)
    at BasicPubSubClient._receiveMessage (C:\Users\danhu\AppData\Local\firebot\app-5.62.1\resources\app.asar\node_modules\@twurple\pubsub\lib\BasicPubSubClient.js:313:22)
    at C:\Users\danhu\AppData\Local\firebot\app-5.62.1\resources\app.asar\node_modules\@twurple\pubsub\lib\BasicPubSubClient.js:94:18
    at PersistentConnection.emit (C:\Users\danhu\AppData\Local\firebot\app-5.62.1\resources\app.asar\node_modules\@d-fischer\typed-event-emitter\lib\EventEmitter.js:31:17)
    at C:\Users\danhu\AppData\Local\firebot\app-5.62.1\resources\app.asar\node_modules\@d-fischer\connection\lib\PersistentConnection.js:83:46
    at WebSocketConnection.emit (C:\Users\danhu\AppData\Local\firebot\app-5.62.1\resources\app.asar\node_modules\@d-fischer\typed-event-emitter\lib\EventEmitter.js:31:17) uncaughtException

Contact Details (Optional)

No response

@dennisrijsdijk dennisrijsdijk added the Bug A defect in the app label Apr 28, 2024
@github-actions github-actions bot added this to Backlog in Work Status Apr 28, 2024
@zunderscore zunderscore added the EventSub Depends on Twitch EventSub functionality label Apr 29, 2024
@zunderscore
Copy link
Collaborator

Since PubSub deprecation has been announced by Twitch, we'll leave this for now until we can migrate that event to EventSub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A defect in the app EventSub Depends on Twitch EventSub functionality
Projects
Work Status
  
Backlog
Development

No branches or pull requests

2 participants