nguyenquyhy / DiscordBridge

A Sponge plugin to integrate Minecraft server with a Discord channel
MIT License
31 stars 18 forks source link

I have this error when I use /discord default login {email} {PW} #2

Closed dungeonmaster372 closed 7 years ago

dungeonmaster372 commented 8 years ago

Attached is the error in console I am getting I have all the correct login stuff and I have the correct invite code as well

I also get this error:

When using /discord login {My Email} {My PW}

Cant get cached token

Sponge-Discord Issue log.txt

I am currently using mc 1.8.9 forge version 1732 spongeforge (for 1732)

Pandawan commented 8 years ago

Yeah, I get "Cannot remove cached token"

Here's the error code

_[15:04:50 ERROR] [STDERR]: java.io.IOException: java.lang.NullPointerException [15:04:50 ERROR] [STDERR]: at ninja.leaping.configurate.loader.AbstractConfigurationLoader.save(AbstractConfigurationLoader.java:184) [15:04:50 ERROR] [STDERR]: at com.nguyenquyhy.spongediscord.database.JsonFileStorage.removeToken(JsonFileStorage.java:54) [15:04:50 ERROR] [STDERR]: at com.nguyenquyhy.spongediscord.SpongeDiscord.logout(SpongeDiscord.java:447) [15:04:50 ERROR] [STDERR]: at com.nguyenquyhy.spongediscord.SpongeDiscord.login(SpongeDiscord.java:418) [15:04:50 ERROR] [STDERR]: at com.nguyenquyhy.spongediscord.commands.LoginCommand.execute(LoginCommand.java:27) [15:04:50 ERROR] [STDERR]: at org.spongepowered.api.command.args.ChildCommandElementExecutor.execute(ChildCommandElementExecutor.java:177) [15:04:50 ERROR] [STDERR]: at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:332) [15:04:50 ERROR] [STDERR]: at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:331) [15:04:50 ERROR] [STDERR]: at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:252) [15:04:50 ERROR] [STDERR]: at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:83) [15:04:50 ERROR] [STDERR]: at net.minecraft.network.NetHandlerPlayServer.func_147361_d(SourceFile:690) [15:04:50 ERROR] [STDERR]: at net.minecraft.network.NetHandlerPlayServer.func_147354_a(SourceFile:677) [15:04:50 ERROR] [STDERR]: at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:37) [15:04:50 ERROR] [STDERR]: at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(SourceFile:9) [15:04:50 ERROR] [STDERR]: at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:106) [15:04:50 ERROR] [STDERR]: at net.minecraft.network.PacketThreadUtil$1.onProcessPacket(SourceFile:51) [15:04:50 ERROR] [STDERR]: at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [15:04:50 ERROR] [STDERR]: at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [15:04:50 ERROR] [STDERR]: at java.util.concurrent.FutureTask.run(Unknown Source) [15:04:50 ERROR] [STDERR]: at net.minecraft.util.Util.func_181617_a(SourceFile:44) [15:04:50 ERROR] [STDERR]: at net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:143) [15:04:50 ERROR] [STDERR]: at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFile:299) [15:04:50 ERROR] [STDERR]: at net.minecraft.server.MinecraftServer.func_71217p(SourceFile:535) [15:04:50 ERROR] [STDERR]: at net.minecraft.server.MinecraftServer.run(SourceFile:451) [15:04:50 ERROR] [STDERR]: at java.lang.Thread.run(Unknown Source) [15:04:50 ERROR] [STDERR]: Caused by: java.lang.NullPointerException [15:04:50 ERROR] [STDERR]: at ninja.leaping.configurate.gson.GsonConfigurationLoader.generateValue(GsonConfigurationLoader.java:214) [15:04:50 ERROR] [STDERR]: at ninja.leaping.configurate.gson.GsonConfigurationLoader.saveInternal(GsonConfigurationLoader.java:181) [15:04:50 ERROR] [STDERR]: at ninja.leaping.configurate.loader.AbstractConfigurationLoader.save(AbstractConfigurationLoader.java:179) [15:04:50 ERROR] [STDERR]: ... 24 more [15:04:50 ERROR] [STDERR]: Suppressed: java.io.IOException: Incomplete document [15:04:50 ERROR] [STDERR]: at com.google.gson.stream.JsonWriter.close(JsonWriter.java:527) [15:04:50 ERROR] [STDERR]: at ninja.leaping.configurate.gson.GsonConfigurationLoader.saveInternal(GsonConfigurationLoader.java:184) [15:04:50 ERROR] [STDERR]: ... 25 more

nguyenquyhy commented 7 years ago

Please try again with 2.0.0 release and let me know if this still happens. https://github.com/nguyenquyhy/Sponge-Discord/releases/tag/v2.0.0