Skip to content
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

Invite with an invalid email address sometimes gets no response #38

Open
rboulton opened this issue Jan 15, 2018 · 0 comments
Open

Invite with an invalid email address sometimes gets no response #38

rboulton opened this issue Jan 15, 2018 · 0 comments

Comments

@rboulton
Copy link
Contributor

Just had someone ask me for help because they were trying to invite someone, and the bot wasn't responding. It turned out it's because they were messaging the bot with something like invite <[email protected]> - ie, they were wrapping the email address with angle brackets.

I've tested a bit, and the bot will give the expected message to a message invite [email protected], and to invite [email protected]> but will ignore messages like invite [email protected] or invite <[email protected].

Looking at the code, in

if (err) { return res.send('Error:' + err); }
it looks like if the slack API returns any error code, no message will be displayed (but something will be logged). I'd guess that the slack API is returning an error code for some of these emails, rather than (or as well as) returning details of the error in the JSON response.

I'd suggest running an instance in a test slack instance to debug this.

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

No branches or pull requests

1 participant