Problem with HasteBin API

Discussion in 'Plugin Development' started by Dablre, Jan 15, 2021.

  1. Offline

    Dablre

    [09:48:42] [Server thread/WARN]: java.io.IOException: Server returned HTTP response code: 503 for URL: https://hastebin.com/documents
    [09:48:42] [Server thread/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    [09:48:42] [Server thread/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    [09:48:42] [Server thread/WARN]: at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    [09:48:42] [Server thread/WARN]: at me.sakio.dev.manager.HasteBin.post(HasteBin.java:37)
    [09:48:42] [Server thread/WARN]: at me.sakio.dev.commands.UploadData.onCommand(UploadData.java:16)
    [09:48:42] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [09:48:42] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [09:48:42] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [09:48:42] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Unknown Source)
    [09:48:42] [Server thread/WARN]: at me.sakio.dev.utils.commands.CommandFramework.handleCommand(CommandFramework.java:93)
    [09:48:42] [Server thread/WARN]: at me.sakio.dev.utils.commands.CommandFramework.onCommand(CommandFramework.java:59)
    [09:48:42] [Server thread/WARN]: at me.sakio.dev.utils.commands.BukkitCommand.execute(BukkitCommand.java:46)
    [09:48:42] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181)
    [09:48:42] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:765)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1088)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:925)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:190)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:799)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:307)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:646)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:551)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628)
    [09:48:42] [Server thread/WARN]: java.lang.reflect.InvocationTargetException
    [09:48:42] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [09:48:42] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [09:48:42] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [09:48:42] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Unknown Source)
    [09:48:42] [Server thread/WARN]: at me.sakio.dev.utils.commands.CommandFramework.handleCommand(CommandFramework.java:93)
    [09:48:42] [Server thread/WARN]: at me.sakio.dev.utils.commands.CommandFramework.onCommand(CommandFramework.java:59)
    [09:48:42] [Server thread/WARN]: at me.sakio.dev.utils.commands.BukkitCommand.execute(BukkitCommand.java:46)
    [09:48:42] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181)
    [09:48:42] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:765)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1088)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:925)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:190)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:799)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:307)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:646)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:551)
    [09:48:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628)
    [09:48:42] [Server thread/WARN]: Caused by: java.lang.NullPointerException
    [09:48:42] [Server thread/WARN]: at me.sakio.dev.manager.HasteBin.post(HasteBin.java:43)
    [09:48:42] [Server thread/WARN]: at me.sakio.dev.commands.UploadData.onCommand(UploadData.java:16)
    [09:48:42] [Server thread/WARN]: ... 20 more




    This problem is when i try upload a .yml to hastebin with this code:
    https://prnt.sc/wo4h86
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Dablre Might want to check your error codes as 503 means service unavailable
     

Share This Page