From ff483b33440a6c96c637798e3f14822b5c5f958c Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Tue, 18 Jan 2022 14:22:51 +0100 Subject: [PATCH] Add debug to catch error --- app/Utils/SongUtils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Utils/SongUtils.ts b/app/Utils/SongUtils.ts index 7ad2366..b1126b9 100644 --- a/app/Utils/SongUtils.ts +++ b/app/Utils/SongUtils.ts @@ -90,9 +90,14 @@ async function RequestWrapper(url: string): Promise } try { request = await axios.get(url, options) + console.log('New Request : ') + console.log(request.status) + console.log(request.data) } catch (error) { + console.log('Error in new Request !') await regenerateTokens() + console.log('token regenerated') request = await axios.get(url, options) }