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.

app_home_opened event fires twice when the 'messages' tab is clicked

See original GitHub issue

Using app.action to monitor app_home_openend fires twice when a user clicks on the messages tab

 app.event("app_home_opened", async context => {
    console.log(context.payload.tab);
  });

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

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

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

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

Bug Report

Reproducible in:

package version: 1.5.0

node version: v10.14.1

OS version(s): OSX 10.14.6

Steps to reproduce:

 app.event("app_home_opened", async context => {
    console.log(context.payload.tab);
  });

Expected result:

Clicking back and forth between the Home and Messages tab should appear in the console as:

home messages home messages

Actual result:

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jamesfmaccommented, Dec 30, 2019

Thanks @seratch! agree that it doesn’t look like a Bolt issue 😃 I’ll test again in a fresh workspace and if the issue persists I’ll follow your advice and raise it with Slack support.

1reaction
seratchcommented, Dec 30, 2019

@jamesfmac Thanks for the information with us. I tried to reproduce your situation again, but I was not able to. I did the following steps. The issue didn’t occur to me.

  • Create a new Slack app
  • Run your Bolt app with the issued signing secret
  • Add a bot user
  • Enable Event Subscriptions & add app_home_opened (the outcome is the same with bot events or/and workspace events)
  • Sign up for App Home open beta
  • Install the app to its development workspace
  • Restart the Bolt app with the issued bot token
  • Open Home / Messages tabs associated to the bot user on Slack

This issue doesn’t seem to be Bolt-specific. So, as a Bolt maintainer, there is nothing further I can do for you. 🙇

I’m afraid something is happening with your Slack app configuration or workspace. Even if you build the endpoint with other tools, the problem will remain. If you don’t mind, could you contact Slack’s support next year? In case your Slack app has some server-side issues, they may cooperate with related teams (sharing your app id would be helpful for them).

Read more comments on GitHub >

github_iconTop Results From Across the Web

app_home_opened event fires twice when the 'messages' tab ...
Using app.action to monitor app_home_openend fires twice when a user clicks on the messages tab app.event("app_home_opened", async context ...
Read more >
Why is my app_home_opened event sometimes triggered ...
However, sometimes (not always) the event is triggered twice and I don't know why. Interesting is that the second event can appear a...
Read more >
app_home_opened event - Slack API
Use the app_home_opened event to begin a friendly onboarding flow from your app, a whimsical welcome message, or a deep-dive into a detailed...
Read more >
Bolt for JavaScript - Slack Platform Developer Tools
A framework that makes Slack app development fast and straight-forward. With a single interface for Slack's Web API, Events API, ...
Read more >
Slack Webhooks: A Deep Dive
Step 3: Subscribe to the app_home_opened event. Bot events. Step 4: Enable a home tab for your app by first visiting the app...
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