try {
const response = await fetch(
"https://avatars.githubusercontent.com/u/6391776?v=4s",
)
if (!response.ok) throw new Error("Network response was not ok")
const blob = await response.blob()
const arrayBuffer = await blob.arrayBuffer()
await client.put("github-profile", arrayBuffer)
} catch (error) {
console.error("Error fetching the image:", error)
}
try {
const response = await fetch(
"https://avatars.githubusercontent.com/u/6391776?v=4s",
)
if (!response.ok) throw new Error("Network response was not ok")
const blob = await response.blob()
const arrayBuffer = await blob.arrayBuffer()
await client.put("github-profile", arrayBuffer)
} catch (error) {
console.error("Error fetching the image:", error)
}