He estado tratando de averiguar cómo instalar correctamente mi aplicación Slack en mi espacio de trabajo. Estoy usando Bolt Node.js Framework para hacer esto y estoy usando el siguiente punto final para instalar
https://mysite/slack/install
Sin embargo, una vez que navego a esta página, dice que no se puede encontrar la página. Pensé que se suponía que esta página devolvería un botón para instalar la aplicación.
Además, enumeré para redirigir-url a este punto final y sigo recibiendo el mismo error.
Aquí hay algo de código
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) } } } })