Skip to content

Commit 16e790b

Browse files
committed
chore: add logging to understand what's breaking on cg requets
1 parent 7d862e9 commit 16e790b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/scripts/auxLists/utils.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ export async function fetchWithApiKey(url: string): Promise<any> {
7070
throw new Error(`HTTP error! status: ${response.status}`)
7171
}
7272

73-
return response.json()
73+
console.log(`Fetched from ${url}:`, response.status)
74+
const data = await response.json()
75+
76+
console.log(`Data from ${url}:`, data)
77+
78+
return data
7479
} catch (error) {
7580
console.error(`Failed to fetch from ${url}:`, error)
7681
throw error

0 commit comments

Comments
 (0)