clonn / slack-node-sdk

slack.com, slack, node sdk
MIT License
167 stars 32 forks source link

Bad request error handling in webhook #14

Closed dbellavista closed 9 years ago

dbellavista commented 9 years ago

When request raises an error, the second and third parameter of the callback are not necessarily defined. So line: https://github.com/clonn/slack-node-sdk/blob/master/lib/lib/slack.seed.js#L58 throws an TypeError: Cannot read property 'statusCode' of undefined upon request error.

clonn commented 9 years ago

@dbellavista already upgrade https://www.npmjs.com/package/slack-node version, please update and try again.