From d1950438f61c53573bea09b11e6426a42a849c41 Mon Sep 17 00:00:00 2001 From: Ronny Esterluss Date: Thu, 30 May 2024 10:07:31 +0200 Subject: [PATCH] some debugging infos --- frontend/src/Icon.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/Icon.js b/frontend/src/Icon.js index 9d5e067..80e6aac 100644 --- a/frontend/src/Icon.js +++ b/frontend/src/Icon.js @@ -18,9 +18,13 @@ function Icon(props) { async function getIcon(ethAddress) { set_ethAddress(ethAddress); try { + console.log("fetching",`https://${props.serverurl}/logo/${ethAddress}`); const rez = await fetch(`https://${props.serverurl}/logo/${ethAddress}`, { cache: "no-store" }) + console.log("resp",rez); const blob = await rez.blob(); + console.log("blob",blob); const icon = URL.createObjectURL(blob); + console.log("icon",icon); set_icon(icon); } catch (e) { console.warn(`No icon for ${ethAddress}`, e) @@ -30,9 +34,13 @@ function Icon(props) { async function getIcon_uHTTP(ethAddress) { set_ethAddress(ethAddress); try { + console.log("[uHTTP] fetching",`https://${props.serverurl}/logo/${ethAddress}`); const rez = await props.uHTTP.fetch(`https://${props.serverurl}/logo/${ethAddress}`) + console.log("[uHTTP] resp",rez); const blob = await rez.blob(); + console.log("[uHTTP] blob",blob); const icon = URL.createObjectURL(blob); + console.log("[uHTTP] icon",icon); set_icon(icon); } catch (e) { console.warn(`[uHTTP] No icon for ${ethAddress}`, e)