Skip to content
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

Slack bot integration Error: not_allowed_token_type #123

Open
ImagineerNL opened this issue May 27, 2024 · 4 comments
Open

Slack bot integration Error: not_allowed_token_type #123

ImagineerNL opened this issue May 27, 2024 · 4 comments
Assignees
Labels

Comments

@ImagineerNL
Copy link

Trying to install this as a slack bot.

Created the app, added the oauth permissions as per instruction.
Copy/pasted the SLACK_BOT_TOKEN from the slack app settings "Bot User OAuth Token" , but get this error in my logs and it won't connect to slack.

exception in thread "main" java.lang.IllegalStateException: Failed to the RTM endpoint URL (error: not_allowed_token_type)
at com.github.seratch.jslack.Slack.rtmConnect(Slack.java:157)
at com.github.seratch.jslack.Slack.rtmConnect(Slack.java:132)
at com.github.seratch.jslack.Slack.rtm(Slack.java:123)
at com.botdarr.clients.slack.SlackBootstrap.init(SlackBootstrap.java:36)
at com.botdarr.BotdarrApplication.main(BotdarrApplication.java:13)

I'm using the docker app from the Unraid appdir, and manually added the needed variables from the readme.

Total log seems error free besides a lidarr warning (i dont have lidarr):

May 27, 2024 9:28:20 PM org.flywaydb.core.internal.logging.slf4j.Slf4jLog info
INFO: Flyway Community Edition 6.2.4 by Redgate
May 27, 2024 9:28:20 PM org.flywaydb.core.internal.logging.slf4j.Slf4jLog info
INFO: Database: jdbc:sqlite:database/botdarr.db (SQLite 3.30)
May 27, 2024 9:28:20 PM org.flywaydb.core.internal.logging.slf4j.Slf4jLog info
INFO: Successfully validated 3 migrations (execution time 00:00.010s)
May 27, 2024 9:28:20 PM org.flywaydb.core.internal.logging.slf4j.Slf4jLog info
INFO: Current version of schema "main": 3
May 27, 2024 9:28:20 PM org.flywaydb.core.internal.logging.slf4j.Slf4jLog info
INFO: Schema "main" is up to date. No migration necessary.
Exception in thread "main" java.lang.IllegalStateException: Failed to the RTM endpoint URL (error: not_allowed_token_type)
at com.github.seratch.jslack.Slack.rtmConnect(Slack.java:157)
at com.github.seratch.jslack.Slack.rtmConnect(Slack.java:132)
at com.github.seratch.jslack.Slack.rtm(Slack.java:123)
at com.botdarr.clients.slack.SlackBootstrap.init(SlackBootstrap.java:36)
at com.botdarr.BotdarrApplication.main(BotdarrApplication.java:13)
2024-May-27 21:28:20 PM [main] WARN com.botdarr.Config - Lidarr commands are not enabled, make sure you set the lidarr url, path, token, default profile

** Press ANY KEY to close this window **

@shayaantx shayaantx self-assigned this May 28, 2024
@shayaantx
Copy link
Owner

@ImagineerNL ill run thru steps 2moro night or next night and see if i can reproduce

@shayaantx
Copy link
Owner

@ImagineerNL I ran through https://github.com/shayaantx/botdarr/wiki/Install-Slack-Bot and didn't have an issue (well I was running an older jdk 8 and got certificate errors, but once I upgraded it was fine)

I did update slack api #124, but I couldn't reproduce your error

Did you create a classic app? or a modern one? (looks like eventually classic apps are gonna die, so guess these instructions will need to change)

image

If you're on discord or matrix or slack, post your handle, and I can look at your issue live too

@ImagineerNL
Copy link
Author

I'll dig a bit further in what it might be, thanks for looking.
I assume it was a classic app, that might have been the issue

@ACupOfAvgJoe
Copy link

classic Slack apps are no longer supported, any chance there will be support for modern apps? getting the same not_allowed_token_type error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants