slackapi / template-slash-command-and-dialogs

Sample Slack app that uses a Slash Command and interactive message to create helpdesk tickets
MIT License
141 stars 76 forks source link

Command time out #2

Open ashleyEVhewins opened 5 years ago

ashleyEVhewins commented 5 years ago

I am running the app through Glitch and it initially worked well, but every now and then it times out and take a few attempts to launch.

Any idea what is causing this?

girliemac commented 5 years ago

I am guessing that it happens when the server is waking up from hibernation. And when your server can't respond to the HTTP request in 3000 ms, it just fails. Although this is not included in this code sample, you can make a delayed response using the response_url. https://api.slack.com/slash-commands#responding_response_url