aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-06-24 15:54:57 -0500
committermat <github@matdoes.dev>2021-06-24 15:54:57 -0500
commiteb918b59e8a0cc65f1142fab4b80b3d76df9c457 (patch)
tree6992f7b6d1378f2614f2b30d1ad5c306c91b2194
parentecd3ac39b42332fe0c4c2cd475f77e875ea6fdb4 (diff)
downloadskyblock-api-eb918b59e8a0cc65f1142fab4b80b3d76df9c457.tar.gz
skyblock-api-eb918b59e8a0cc65f1142fab4b80b3d76df9c457.tar.bz2
skyblock-api-eb918b59e8a0cc65f1142fab4b80b3d76df9c457.zip
debugging:tm:
-rw-r--r--build/hypixelApi.js1
-rw-r--r--src/hypixel.ts1
-rw-r--r--src/hypixelApi.ts1
3 files changed, 2 insertions, 1 deletions
diff --git a/build/hypixelApi.js b/build/hypixelApi.js
index 7c1176e..8ab2c46 100644
--- a/build/hypixelApi.js
+++ b/build/hypixelApi.js
@@ -70,6 +70,7 @@ async function sendApiRequest({ path, key, args }) {
try {
fetchResponse = await node_fetch_1.default(fetchUrl, { agent: () => httpsAgent });
fetchJsonParsed = await fetchResponse.json();
+ console.log('gotten api response', fetchJsonParsed);
}
catch {
// if there's an error, wait a second and try again
diff --git a/src/hypixel.ts b/src/hypixel.ts
index bfb826e..bea64fb 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -38,7 +38,6 @@ export async function sendCleanApiRequest({ path, args }, included?: Included[],
await new Promise(resolve => setTimeout(resolve, 1000))
return await sendCleanApiRequest({ path, args }, included, options)
}
-
// clean the response
return await cleanResponse({ path, data: rawResponse }, options ?? {})
}
diff --git a/src/hypixelApi.ts b/src/hypixelApi.ts
index 886b261..25ab68b 100644
--- a/src/hypixelApi.ts
+++ b/src/hypixelApi.ts
@@ -158,6 +158,7 @@ export async function sendApiRequest({ path, key, args }): Promise<HypixelRespon
{ agent: () => httpsAgent }
)
fetchJsonParsed = await fetchResponse.json()
+ console.log('gotten api response', fetchJsonParsed)
} catch {
// if there's an error, wait a second and try again
await new Promise((resolve) => setTimeout(resolve, 1000))