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

Multiple reply in slack bot #61

Open
myselfronin opened this issue Oct 2, 2020 · 1 comment
Open

Multiple reply in slack bot #61

myselfronin opened this issue Oct 2, 2020 · 1 comment

Comments

@myselfronin
Copy link

myselfronin commented Oct 2, 2020

When I hit a command on my slack app. Its getting multiple replies from the bot. I am using ngrok while developing and I can see the slack is sending multiple request. I couldn't fix this ,whether its from my botman app or the slack app. Has anyone faced this issue. The code is just the one that we get from fresh botman install. In tinker its working fine.

@myselfronin
Copy link
Author

I am embarrassed with my question, It was already mentioned in the documentation. But also if anyone missed it.
If you're using ngrok be aware that Slack has a timeout of 3 seconds. When using ngrok, depending on your location and connection speed, the time it takes for Slack to get a 200 OK can be longer than 3 seconds. In such cases you'll notice that your bot will answer multiple times. If you're facing this issue a possible solution is to deploy your bot to a production server or try to change the ngrok server location.

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