Skip to content

Pasting to Hastebin is broken #2277

Description

@nicegamer7

Pasting to Hastebin currently errors.

[21:01:52 WARN]: com.onarandombox.MultiverseCore.utils.webpaste.PasteFailedException: java.io.IOException: Server returned HTTP response code: 403 for URL: https://hastebin.com/documents
[21:01:52 WARN]:        at com.onarandombox.MultiverseCore.utils.webpaste.HastebinPasteService.postData(HastebinPasteService.java:62)
[21:01:52 WARN]:        at com.onarandombox.MultiverseCore.commands.VersionCommand.postToService(VersionCommand.java:213)
[21:01:52 WARN]:        at com.onarandombox.MultiverseCore.commands.VersionCommand.access$000(VersionCommand.java:40)
[21:01:52 WARN]:        at com.onarandombox.MultiverseCore.commands.VersionCommand$1.run(VersionCommand.java:179)
[21:01:52 WARN]:        at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:84)
[21:01:52 WARN]:        at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)
[21:01:52 WARN]:        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[21:01:52 WARN]:        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[21:01:52 WARN]:        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[21:01:52 WARN]:        at java.lang.Thread.run(Thread.java:748)
[21:01:52 WARN]: Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://hastebin.com/documents
[21:01:52 WARN]:        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
[21:01:52 WARN]:        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
[21:01:52 WARN]:        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
[21:01:52 WARN]:        at com.onarandombox.MultiverseCore.utils.webpaste.HastebinPasteService.postData(HastebinPasteService.java:48)
[21:01:52 WARN]:        ... 9 more
[21:01:52 INFO]: [Multiverse-Core] Version info dumped here: Error posting to service.

I solved this by adding a dummy User-Agent, but now the links posted to the console just redirect back to https://hastebin.com/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: AcceptedMV-Team is aware of the issue/PR and will be looking into it.Severity: MinorSmall issues that low priority of of fixing/adding.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions