From b622e924b6949e9deef41463bcaeac901d0498f0 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Fri, 3 Oct 2025 09:19:54 -0500 Subject: [PATCH] chore: logging errors --- packages/console/app/src/lib/github.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/console/app/src/lib/github.ts b/packages/console/app/src/lib/github.ts index 587da34b..15cbd6cb 100644 --- a/packages/console/app/src/lib/github.ts +++ b/packages/console/app/src/lib/github.ts @@ -4,8 +4,18 @@ export const github = query(async () => { "use server" try { const [meta, releases, contributors] = await Promise.all([ - fetch("https://api.github.com/repos/sst/opencode").then((res) => res.json()), - fetch("https://api.github.com/repos/sst/opencode/releases").then((res) => res.json()), + fetch("https://api.github.com/repos/sst/opencode").then(async (res) => { + const text = await res.text() + console.log(text) + const json = JSON.parse(text) + return json + }), + fetch("https://api.github.com/repos/sst/opencode/releases").then(async (res) => { + const text = await res.text() + console.log(text) + const json = JSON.parse(text) + return json + }), fetch("https://api.github.com/repos/sst/opencode/contributors?per_page=1"), ]) const [release] = releases