Slack API and slack user application always become invalid - oauth with botkit database

The problem ran. Starting from a few days, I always get invalid_oauthfrom the slack API ... I use the Botkit framework, node.js server, this is my debugging:

info: ** Starting webserver on port 3000 info: ** Serving webhook endpoints for Slash commands and outgoing webhooks at: http://MY_HOST:3000/slack/receive info: ** Serving login URL: http://MY_HOST:3000/login info: ** Serving oauth return endpoint: http://MY_HOST:3000/oauth info: ** API CALL: https://slack.com/api/rtm.start debug: rtm.start { no_unreads: true, simple_latest: true, token: 'xoxb-81934967667-UOJKkxYnIf0xZJ9cJspwoAOC' } debug: Got response null {"ok":false,"error":"invalid_auth"} Error connecting bot to Slack: invalid_auth

I run the application with: clientId=xxx.xxx clientSecret=xxx port=3000 node bot.js

I have a custom slack application configured with the oauth endpoint returned by the botkit debugging console, redirecting localtunnel to my local computer, one bot configured in the application.

Any ideas? I am sure that I am not very far from a solution ...

Thanks so much for any help.

+4
source share

Source: https://habr.com/ru/post/1655765/


All Articles