Switch to GitHub Gists for debug reporting
Androkai opened this issue ยท 0 comments
At the moment hastebin is overloaded and returns 503 "internal server error" errors. We should add a fallback for this. I think about writing it to a file, e.g. plugins/DiscordSRV/debug/<timestamp>.log
and inform the user about what to do.
Here is the log:
[13:06:13 INFO]: Player issued server command: /discord debug
discord debug
[13:06:34 INFO]: [DiscordSRV] Chat: [Discord | Owner] Player: /discord debug
[13:06:44 WARN]: java.io.IOException: Server returned HTTP response code: 503 for URL: http://hastebin.com/documents
[13:06:44 WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)
[13:06:44 WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
[13:06:44 WARN]: at com.scarsz.discordsrv.util.DebugHandler.run(DebugHandler.java:149)
[13:06:44 WARN]: at com.scarsz.discordsrv.DiscordSRV.onCommand(DiscordSRV.java:509)
[13:06:44 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[13:06:44 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140)
[13:06:44 WARN]: at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:646)
[13:06:44 WARN]: at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1351)
[13:06:44 WARN]: at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1186)
[13:06:44 WARN]: at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
[13:06:44 WARN]: at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
[13:06:44 WARN]: at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13)
[13:06:44 WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[13:06:44 WARN]: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[13:06:44 WARN]: at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45)
[13:06:44 WARN]: at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:732)
[13:06:44 WARN]: at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:400)
[13:06:44 WARN]: at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:668)
[13:06:44 WARN]: at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:567)
[13:06:44 WARN]: at java.lang.Thread.run(Thread.java:745)
[13:06:44 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'discord' in plugin DiscordSRV v12.2
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) ~[spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:646) ~[spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1351) [spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1186) [spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72]
at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:732) [spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:668) [spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:567) [spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
at com.scarsz.discordsrv.util.DebugHandler.run(DebugHandler.java:156) ~[?:?]
at com.scarsz.discordsrv.DiscordSRV.onCommand(DiscordSRV.java:509) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.10.2.jar:git-Spigot-1e4dd71-5e5cf84]
... 15 more