Skip to content

Catch exceptions thrown by Slack SDK #11

Closed
@jkehres

Description

@jkehres

I would agree with this issue:

slackapi/node-slack-sdk#775

Error handling is not intuitive for the Slack SDK. The result object returned by an API call has an ok property, which indicates the API will never reject/throw and you need to check the result to determine the success. However, in practice the SDK will reject/throw. We are not currently handling this in the code. This is particularly bad in the stream lambda since we could stuck trying to process the same record forever when we hit a Slack API error that is permanent.

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