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

slack 4.0 error #12

Open
villain opened this issue Aug 17, 2016 · 1 comment
Open

slack 4.0 error #12

villain opened this issue Aug 17, 2016 · 1 comment

Comments

@villain
Copy link

villain commented Aug 17, 2016

after upgrading to the latest version of the slack client for hubot, i've come across this:

slackapi/hubot-slack#328

error output:

Unhandled rejection SlackRTMError: invalid channel id
at RTMClient.handleMessageAck as _handleMessageAck
at RTMClient._handleWsMessageViaEventHandler (/home/user/hubot/node_modules/@slack/client/lib/clients/rtm/client.js:460:12)
at RTMClient.handleWsMessage (/home/user/hubot/node_modules/@slack/client/lib/clients/rtm/client.js:420:10)
at WebSocket.wrapper (/home/user/hubot/node_modules/lodash/lodash.js:4762:19)
at emitTwo (events.js:106:13)
at WebSocket.emit (events.js:191:7)
at Receiver.ontext (/home/user/hubot/node_modules/ws/lib/WebSocket.js:841:10)
at /home/user/hubot/node_modules/ws/lib/Receiver.js:536:18
at /home/user/hubot/node_modules/ws/lib/Receiver.js:368:7
at /home/user/hubot/node_modules/ws/lib/PerMessageDeflate.js:249:5
at afterWrite (_stream_writable.js:361:3)
at onwrite (_stream_writable.js:352:7)
at WritableState.onwrite (_stream_writable.js:89:5)
at afterTransform (_stream_transform.js:79:3)
at TransformState.afterTransform (_stream_transform.js:54:12)
at Zlib.callback (zlib.js:639:5)

channels are now referenced by id, not by name. re-subscribing to the events works, but that error above is printed to the hubot console each time

@spajus
Copy link
Owner

spajus commented Aug 19, 2016

Did you try to unsubscribe all events and then do a fresh subscription? It could be old subscription is still in memory.

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

No branches or pull requests

2 participants