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

Exception: Cannot set property 'services_only_admins' of undefined #23

Closed
jtatum opened this issue Feb 15, 2015 · 2 comments
Closed

Exception: Cannot set property 'services_only_admins' of undefined #23

jtatum opened this issue Feb 15, 2015 · 2 comments

Comments

@jtatum
Copy link
Contributor

jtatum commented Feb 15, 2015

My bot based on the slack-client node module crashed a couple of times today. Looks like it got a message it couldn't handle. This is the mysterious backtrace.

/app/node_modules/slack-client/src/client.js:546
        return this.team.prefs[message.name] = message.value;
TypeError: Cannot set property 'services_only_admins' of undefined
    at Client.onMessage (/app/node_modules/slack-client/src/client.js:546:46)
    at WebSocket.<anonymous> (/app/node_modules/slack-client/src/client.js:142:24)
    at WebSocket.emit (events.js:98:17)
    at Receiver.self._receiver.ontext (/app/node_modules/slack-client/node_modules/ws/lib/WebSocket.js:697:10)
    at Receiver.opcodes.1.finish (/app/node_modules/slack-client/node_modules/ws/lib/Receiver.js:397:14)
    at Receiver.expectHandler (/app/node_modules/slack-client/node_modules/ws/lib/Receiver.js:384:31)
    at Receiver.add (/app/node_modules/slack-client/node_modules/ws/lib/Receiver.js:93:24)
    at CleartextStream.firstHandler (/app/node_modules/slack-client/node_modules/ws/lib/WebSocket.js:678:22)
    at CleartextStream.emit (events.js:95:17)
    at CleartextStream.<anonymous> (_stream_readable.js:765:14)
@evansolomon
Copy link
Contributor

This was fixed in 7e7dac7 but there hasn't been a new release yet

@paulhammond
Copy link
Contributor

1.4.0 was just released, fixing this bug.

aoberoi added a commit to aoberoi/node-slack-sdk that referenced this issue Mar 20, 2019
adds error handling to readme and examples, fixes slackapi#23
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

3 participants