-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Handle token_revoked event #892
Conversation
@@ -162,6 +162,7 @@ func (smc *Client) connect(ctx context.Context, connectionCount int, additionalP | |||
errInvalidAuth = "invalid_auth" | |||
errInactiveAccount = "account_inactive" | |||
errMissingAuthToken = "not_authed" | |||
errInvalidToken = "invalid_token" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
invalid_token? token_revoked? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does Slack send us to different errors for SocketMode and RTM??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apologies, I messed up, it's the same error string. Fixing it
This is a critical event and the client should stop trying to reconnect. Signed-off-by: Andrea Barberio <insomniac@slackware.it>
0e40c33
to
6df6591
Compare
Not sure why this is failing only on go 1.12, @kanata2 would you have an insight?
|
This test is so fragile... (I'll run test again.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :)
In particular, improve reconnection behaviour after merging slack-go/slack#892 Signed-off-by: Andrea Barberio <insomniac@slackware.it>
In particular, improve reconnection behaviour after merging slack-go/slack#892 Signed-off-by: Andrea Barberio <insomniac@slackware.it>
This is a critical event and the client should stop trying to reconnect.
Signed-off-by: Andrea Barberio insomniac@slackware.it