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

node main.js TypeError: Cannot read property 'find' of undefined #37

Open
stango1212 opened this issue Feb 22, 2017 · 6 comments
Open

Comments

@stango1212
Copy link

node main.js
TypeError: Cannot read property 'find' of undefined

Now and again i get this error, sometimes slack it works, sometimes i am blocked.

@evanyeung
Copy link
Owner

Hi @stango1212, it looks like this might be possible if there is an error getting the users from Slack. But I'm not sure what the root cause would be. Do you have any more information about where the error occurred in the code or what you do to cause it? Thanks

@eliaslaouiti
Copy link

Hello,

I've the same error :
TypeError: Cannot read property 'find' of undefined at handleNewMessage (/Users/laouitielias/Downloads/terminal-slack/main.js:93:25) at WebSocket.ws.on (/Users/laouitielias/Downloads/terminal-slack/main.js:132:7) at emitTwo (events.js:106:13) at WebSocket.emit (events.js:191:7) at Receiver.ontext (/Users/laouitielias/Downloads/terminal-slack/node_modules/ws/lib/WebSocket.js:797:10) at /Users/laouitielias/Downloads/terminal-slack/node_modules/ws/lib/Receiver.js:473:18 at Receiver.applyExtensions (/Users/laouitielias/Downloads/terminal-slack/node_modules/ws/lib/Receiver.js:360:5) at /Users/laouitielias/Downloads/terminal-slack/node_modules/ws/lib/Receiver.js:462:14 at Receiver.flush (/Users/laouitielias/Downloads/terminal-slack/node_modules/ws/lib/Receiver.js:336:3) at Receiver.finish (/Users/laouitielias/Downloads/terminal-slack/node_modules/ws/lib/Receiver.js:478:12)

Thanks

@elbo1216
Copy link

elbo1216 commented Mar 21, 2017

Hi,

I have the same error. It works once in a while but more often than not I get this error message:

TypeError: Cannot read property 'find' of undefined
at handleNewMessage (/web/terminal-slack/main.js:93:25)
at WebSocket.ws.on (/web/terminal-slack/main.js:132:7)
at emitTwo (events.js:106:13)
at WebSocket.emit (events.js:191:7)
at Receiver.ontext (/web/terminal-slack/node_modules/ws/lib/WebSocket.js:797:10)
at /web/terminal-slack/node_modules/ws/lib/Receiver.js:473:18
at Receiver.applyExtensions (/web/terminal-slack/node_modules/ws/lib/Receiver.js:360:5)
at /web/terminal-slack/node_modules/ws/lib/Receiver.js:462:14
at Receiver.flush (/web/terminal-slack/node_modules/ws/lib/Receiver.js:336:3)
at Receiver.finish (/web/terminal-slack/node_modules/ws/lib/Receiver.js:478:12)

@dayerdl
Copy link

dayerdl commented Mar 23, 2017

Same problem. I am using node v7.7.4

DavidDayer-MB-Pro:terminal-slack david$ node main.js
TypeError: Cannot read property 'find' of undefined
at handleNewMessage (/Users/david/terminal-slack/main.js:93:25)
at WebSocket.ws.on (/Users/david/terminal-slack/main.js:132:7)
at emitTwo (events.js:106:13)
at WebSocket.emit (events.js:194:7)
at Receiver.ontext (/Users/david/terminal-slack/node_modules/ws/lib/WebSocket.js:797:10)
at /Users/david/terminal-slack/node_modules/ws/lib/Receiver.js:473:18
at Receiver.applyExtensions (/Users/david/terminal-slack/node_modules/ws/lib/Receiver.js:360:5)
at /Users/david/terminal-slack/node_modules/ws/lib/Receiver.js:462:14
at Receiver.flush (/Users/david/terminal-slack/node_modules/ws/lib/Receiver.js:336:3)
at Receiver.finish (/Users/david/terminal-slack/node_modules/ws/lib/Receiver.js:478:12)

@BARBARIN-Michael
Copy link

I had same error, and i resolve it after re-issue token. I don't know why ...

@BARBARIN-Michael
Copy link

No it's not that, i have same problem again... sorry :'(

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

6 participants