I've been trying to figure out to properly install my Slack App on my workspace. I'm using the Bolt Node.js Framework to do this and I am using the following endpoint to install
https://mysite/slack/install
However, once I navigate to this page it says that the page cannot be found. I thought that this page was supposed to return a button to install the app?
Also, I listed to redirect-url to this endpoint and I still get the same error.
Heres some code
const app = new Bolt.App({
token: BOT_TOKEN,
clientId: CLIENT_ID,
clientSecret:CLIENT_SECRET,
signingSecret: SIGNING_SECRET,
scopes: ['chat:write','commands','channels:history','groups:history','users:read'],
installationStore: {
storeInstallation: async (installation) => {
console.log(installation)
if (installation.isEnterpriseInstall && installation.enterprise !== undefined) {
console.log(installation.enterprise.id)
}
if (installation.team !== undefined) {
console.log(installation.team.id)
}
},
fetchInstallation: async (installQuery) => {
console.log(installQuery)
if (installQuery.isEnterpriseInstall && installQuery.enterpriseId !== undefined) {
console.log(installQuery.enterpriseId)
}
if (installQuery.teamId !== undefined) {
console.log(installQuery.teamId)
}
},
deleteInstallation: async (installQuery) => {
console.log(installQuery)
if (installQuery.isEnterpriseInstall && installQuery.enterpriseId !== undefined) {
console.log(installQuery.enterpriseId)
}
if (installQuery.teamId !== undefined) {
console.log(installQuery.teamId)
}
}
}
})