this repo has no description
0
fork

Configure Feed

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

ensure automod PDS blob fetch errors drain body (#938)

authored by

bnewbold and committed by
GitHub
6589f024 b579a4df

+1
+1
automod/engine/blobs.go
··· 82 82 83 83 blobDownloadCount.WithLabelValues(fmt.Sprint(resp.StatusCode)).Inc() 84 84 if resp.StatusCode != 200 { 85 + io.Copy(io.Discard, resp.Body) 85 86 return nil, fmt.Errorf("failed to fetch blob from PDS. did=%s cid=%s statusCode=%d", c.Account.Identity.DID, blob.Ref, resp.StatusCode) 86 87 } 87 88