Skip to content

Commit

Permalink
try to log img upload response
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondborneman committed Dec 20, 2023
1 parent 0d31570 commit 7901246
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Bsky/Bsky.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ func PostWithMedia(message string, media [][]byte) error {
return uploadImgErr
}
bskyBlob := &BskyImageUploadResp{}
var tempBuf bytes.Buffer
tee := io.TeeReader(uploadImgResp.Body, &tempBuf)
str, _ := io.ReadAll(tee)
log.Printf("TEEEEEEEE: %s", str)
decodeErr := json.NewDecoder(uploadImgResp.Body).Decode(bskyBlob)
if decodeErr != nil {
log.Fatalf("Error decoding Bsky Blob response: %s", decodeErr)
Expand Down

0 comments on commit 7901246

Please sign in to comment.