From bdeb082ce9c7477ff6a91aea1927cb4bbec3638c Mon Sep 17 00:00:00 2001 From: rachel-mp4 Date: Sun, 12 Oct 2025 11:22:00 -0400 Subject: [PATCH] add logging --- server/internal/oauth/oauthclient.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/internal/oauth/oauthclient.go b/server/internal/oauth/oauthclient.go index 0cff308..0bd680b 100644 --- a/server/internal/oauth/oauthclient.go +++ b/server/internal/oauth/oauthclient.go @@ -199,7 +199,8 @@ func UploadBLOB(cs *oauth.ClientSession, file multipart.File, fileHeader *multip } defer resp.Body.Close() if resp.StatusCode != 200 { - return nil, fmt.Errorf("upload failed withy status %d", resp.StatusCode) + body, _ := io.ReadAll(resp.Body) + return nil, fmt.Errorf("upload failed withy status %d: %s", resp.StatusCode, body) } var result lexutil.BlobSchema decoder := json.NewDecoder(resp.Body) -- 2.51.2