Closed gayeed closed 1 year ago
This doesn't fix the actual problem which is why it's throwing that exception when that exception should be caught by the try-catch block and fallback provider should be used. I can't reproduce this bug for 2 days the plugin keeps loading fine for me which is why i can't actually debug this myself. I am trying still though it might take a while
You can try to clear all data the headdb saved and simulate a scene that a head provider returns a wrong json response.Then you will find that the plugin cannot update any data and heads the plugin saves is 0.I met this situation because accessing the https://raw.githubusercontent.com/TheSilentPro/HeadStorage/master/storage(HEAD_STORAGE) failed due to network error and https://heads.pages.dev/archive/humans.json(HEAD_ARCHIVE,fallback provider) returns a corrupted json. This fix ensures that when updating a category responses a corrupted json, other categories update properly.
Should be done in newest release, check spigot.
fix #54 and #55