Skip to content

Getting uncaught exception when passing invalid slack webhook URL #19

@fizerkhan

Description

@fizerkhan

When i set "null" as web hook URL, it throws following

error: UncaughtException: Thu, 11 Jun 2015 14:44:22 GMT
error: TypeError: Cannot read property 'statusCode' of undefined
(err):     at Request._callback (~/myserver/node_modules/slack-node/lib/lib/slack.seed.js:63:25)

The code breaks when body object is undefined, Can you add a check before accessing statusCode.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions