From b94794a3de8827f4bddb5251b010dc32943d79a1 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 27 Mar 2022 04:02:47 +0800 Subject: fixes + make diana retry untill it works --- features/dataLoader/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'features/dataLoader') diff --git a/features/dataLoader/index.js b/features/dataLoader/index.js index 19bdbba..7bf2bf9 100644 --- a/features/dataLoader/index.js +++ b/features/dataLoader/index.js @@ -67,13 +67,17 @@ class DataLoader extends Feature { }else{ if(type === "skyblock"){ try{ + // console.log("loading") let data = JSON.parse(FileLib.getUrlContent("https://api.hypixel.net/skyblock/profiles?key=" + key + "&uuid=" + Player.getUUID().replace(/-/g, ""))) if(!data.success) return this.api_loaded_event.trigger(data, "skyblock", false, true) this.lastApiData.skyblock_raw = data - }catch(e){} + }catch(e){ + console.log("Hypixel api request failed:") + console.log(JSON.stringify(e, undefined, 2)) + } } } } -- cgit