DiscordSRV

DiscordSRV

86.8k Downloads

The provided token is invalid!

Starystars67 opened this issue · 10 comments

commented

Hi, after following the installation instructions and getting DiscordSRV to work with my minecraft (spigot 1.12.2) DiscordSRV now fails to work with the following issue:
image
"The provided token is invalid!" so based upon this i tried recreating the bot and reinstalling everything however this has failed to solve this issue, has a dependency for this failed somewhere?

Thanks for any help anyone can provide

commented

yeah, we don’t support the plugin in the case of plugman tampering for a reason

commented

Like the message said your Bot-Token is invalid. Make sure you created a bot user so it's really a bot token and not the client id. Then put the correct one into config.yml and try again.

commented

Hi Androkai, I did put the bot token in the config.yml see image:
image as you can see i did use the bot-token and not the client id
image
Thanks for your help, any other ideas? unless i am miss understanding you?

commented

Looks good. With an actual valid token it should definitely work.

commented

If not check that your config.yml is encoded in UTF-8, this could probably be a problem if not.
image

commented

So my bot token is correct and i just checked the encoding and it was UTF-8 so that isnt the issue, and just restarted the plugin and still the same issue, is it possible that Rich Presence is causing an issue?

commented

The error message is very precise. The string with which the bot tries to log on to the Discord servers is invalid. So no, no problem with rich presence.

Do you upload the files to a server afterwards? In that case, please check if they arrive safely. Otherwise I'm running out of ideas. Use /discord debug and send us the output. Maybe @Scarsz has another one.

commented

yes i was uploading them and i double checked all was transfering correctly, i did the command and here is the link: https://gist.github.com/anonymous/cacaea027c3c160ae6a5da2977520b46#file-1-discordsrv-info-txt-L2

commented

For some reason the redaction of your bot token doesn't worked. Please regenerate your token to be one the safe side. I recommend a full server restart instead of using PlugMan because the instance of JDA (Discord API DiscordSRV is using) probably isn't correctly terminated/recreated this way.

commented

Well that's strange last restart was when i noticed the issue, but its working now. Thank you!