diff --git a/apps/dashboard/src/@/api/analytics.ts b/apps/dashboard/src/@/api/analytics.ts index 45e4fe9fbcc..dd4fb03cd29 100644 --- a/apps/dashboard/src/@/api/analytics.ts +++ b/apps/dashboard/src/@/api/analytics.ts @@ -78,8 +78,9 @@ export async function getUserOpUsage( }); if (res?.status !== 200) { + const reason = await res?.text(); console.error( - `Failed to fetch user ops usage: ${res?.status} - ${res.statusText}`, + `Failed to fetch user ops usage: ${res?.status} - ${res.statusText} - ${reason}`, ); return []; } @@ -101,8 +102,9 @@ export async function getClientTransactions( ); if (res?.status !== 200) { + const reason = await res?.text(); console.error( - `Failed to fetch client transactions stats: ${res?.status} - ${res.statusText}`, + `Failed to fetch client transactions stats: ${res?.status} - ${res.statusText} - ${reason}`, ); return []; }