Skip to content

Do not crash plugin when GitHub is having issues #2

Description

@TechnicJelle

Right now, GitHub seems to be having some trouble, which causes the update checker to fail its check.
This throws an exception which causes the function that called the checker to be stopped in its tracks.
This is not ideal, because in almost all cases, the failure of the update checker really shouldn't influence the functionality of the plugin that uses it.

[21:41:07] [BlueMap-Plugin-ReloadCommand/ERROR] [BlueMap/]: BlueMapAPI: A BlueMapAPI listener threw an exception (onEnable)!
java.io.IOException: Did not get a redirect
        at com.technicjelle.BlueMapSpawnMarker.shadow.UpdateChecker.fetchLatestVersion(UpdateChecker.java:86) ~[?:?] {}
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) ~[?:?] {}
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) ~[?:?] {}
        at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:?] {}
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) ~[?:?] {}
        at java.util.concurrent.ForkJoinPool.scan(Unknown Source) ~[?:?] {re:computing_frames}
        at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) ~[?:?] {re:computing_frames}
        at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) ~[?:?] {}
[21:41:07] [BlueMap-Plugin-ReloadCommand/INFO] [minecraft/MinecraftServer]: BlueMap reloaded!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions