New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtm.connect API call fails with not_allowed_token_type error code #958
Comments
Hi @mr185306, can you provide more detailed information such as error code, stacktrace etc? I suggest enabling debug logging to see what's happening in your app. import logging
logging.basicConfig(
level=logging.DEBUG,
format="%(asctime)s.%(msecs)03d %(levelname)s %(pathname)s (%(lineno)s): %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
) |
Hi Thanks for the quick response, apologies for the delayed response this is my work account so just seen. I don't actually have an error but I'll enable debug mode while at work tomorrow and get back to you. |
Hi @seratch Thanks for that ! I enabled debug logging and got the following:
I thought maybe I was using the wrong token so I switched from using the 'Bot User OAuth Access Token' to using the 'OAuth Access Token' but the I had a different error saying I was missing the scope rtm:stream, which when I look up I saw in some previous issue was caused by using OAuth token instead of Bot User Token. So unsure in which direction to take it. |
@mr185306 As mentioned in the document https://slack.dev/node-slack-sdk/rtm-api
You need to have a "classic" app and issue a bot token with the settings for utilizing RTM API. You can create a new classic app from this URL. |
@seratch Ahh Okay got it Ill get to that |
As I've provided an answer to this question, let me close this issue. If you have something further to ask/discuss here, please feel free to write in. |
Hi,
I had made a simple SlackAPI bot for my work environment. It scrapes data and allowed us to query the bot using '.flumecheck' which would return the most recently scraped values to that slack channel. No changes have been made to the code itself so I was wondering if an update had been made to the API itself that would mean the following code is now outdated:
########## Code Snippet ##########
########## Code Snippet ##########
Now when anyone sends the '.flumecheck' query, nothing is returned. Also there is no error returned by the script itself. If anyone could point me in the right direction that would be appreciated.
The text was updated successfully, but these errors were encountered: