-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
TypeError: Object [object Object] has no method 'filter' #201
Comments
Interesting. It looks like the only way this could happen is if something subtly goes wrong with the slack API call: Line 44 in 1f14de0
The method if (!users || (users && !users.length)) {
let err = new Error(`Invalid Slack response: ${res.status}`)
this.emit('error', err)
return this.retry()
} |
Created a branch here to experiment: https://github.com/ParabolInc/slackin/tree/fetch-users-defense-%23201 |
After 2 weeks, our Slackin instance hasn't crashed. According to our devops logs, that's a new record. I think we squashed this one. I'll submit a PR. |
Seems like the users array isn't always created.
The text was updated successfully, but these errors were encountered: