Skip to content

Make slack retry posting if connection times out - #11

Merged
clonn merged 1 commit into
clonn:masterfrom
timjrobinson:fix/retry-posting
May 10, 2015
Merged

clonn merged 1 commit into
clonn:masterfrom
timjrobinson:fix/retry-posting

Conversation

@timjrobinson

Copy link
Copy Markdown
Contributor

Gives posting to slack a 10 second timeout and made it retry 3 times. As on occasion I've had messages not post before.

Also fixes #10 by returning the error if one occurs without trying to read body.statusCode.

@yelworc

yelworc commented May 1, 2015

Copy link
Copy Markdown

+1 for this; I am also running into the uncaught TypeError situation mentioned in #10 when there is no valid response body (e.g. in case of networking issues).

clonn added a commit that referenced this pull request May 10, 2015
Make slack retry posting if connection times out
@clonn
clonn merged commit 489989c into clonn:master May 10, 2015
@clonn

clonn commented May 10, 2015

Copy link
Copy Markdown
Owner

thanks for @timjrobinson contributed, merged and upgrade module version.

@timjrobinson
timjrobinson deleted the fix/retry-posting branch May 11, 2015 10:28
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

Successfully merging this pull request may close these issues.

Message was not sent and threw an error

3 participants