A decentralized music tracking and discovery platform built on AT Protocol 🎵 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz
98
fork

Configure Feed

Select the types of activity you want to include in your feed.

Log and ignore Discord webhook send errors

+8 -1
+8 -1
crates/jetstream/src/webhook/discord/mod.rs
··· 45 45 content: String::new(), 46 46 embeds, 47 47 }; 48 - let res = http.post(discord_webhook_url).json(&body).send().await?; 48 + let res = http.post(discord_webhook_url).json(&body).send().await; 49 + if let Err(e) = &res { 50 + tracing::error!(error = %e, "Failed to post to Discord webhook"); 51 + return Ok(()); 52 + } 53 + 54 + let res = res.unwrap(); 55 + 49 56 if !res.status().is_success() { 50 57 let text = res.text().await.unwrap_or_default(); 51 58 tracing::error!(error = %text, "Failed to post to Discord webhook");