question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Events API timeouts (using glitch.com)

See original GitHub issue

Description

I’m using the app_mention event like this:

app.event("app_mention", async ({ event, say}) => {
 (...)
 if (event.text.includes("hello")) {
await say(`something`)
}
(...)
});

However, occasionally my functions trigger multiple times (getting multiple slack posts on a single mention). This is probably caused by Slack getting no acknowledgement of message received within 3 seconds and retrying. From what I read, there’s no way to send an acknowledgement from an event like the above because Bolt does that automatically. Can I force this though to react as soon as possible so it doesn’t happen?

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • [ x] question
  • documentation related
  • example code related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • [ x] I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
  • [ x] I’ve read and agree to the Code of Conduct.
  • [x ] I’ve searched for any related issues and avoided creating a duplicate issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
darekmmcommented, Mar 18, 2021

No, I think no action needed on your side. Thank you!

On Thu, 18 Mar 2021 at 06:22, Kazuhiro Sera @.***> wrote:

Hi @darekmm https://github.com/darekmm, if I understand this issue here correctly, there is no further action we (as the maintainers of Bolt framework) can take for you. Let us know if you have any further comments. I will close this issue after waiting for your response for a while.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/slackapi/bolt-js/issues/786#issuecomment-801635551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBMIBGGKNQPP6AU7JQG2VDTEGEY7ANCNFSM4XLNESNA .

0reactions
seratchcommented, Mar 18, 2021

Hi @darekmm, if I understand this issue here correctly, there is no further action we (as the maintainers of Bolt framework) can take for you. Let us know if you have any further comments. I will close this issue after waiting for your response for a while.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Request to project timed out - Glitch Support
I have exported from github the backend from my application into glitch, but my get requests to https://rpgcharactermanagerbackend.glitch.me/characters times ...
Read more >
Idle time before sleep - Glitch Support
I was wondering about how long it takes for a service to fall asleep when not being used. I wanted to store a...
Read more >
I am experiencing high ping - Glitch Support
My discord.js bot is having ping up to 2k.
Read more >
Building an app to stream Tweets in real-time using the Twitter ...
Building an app to stream Tweets in real-time using the Twitter API. author avatar By Glitch Team. August 12, 2020. The code for...
Read more >
Problem with guildCreate - Code Help - Discord - Glitch Support
Hello, I'm making a Discord bot using Glitch Discord Bot Starter. I added a “guildCreate” event handler to hears.js which looks like this: ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found