[v11.2.x] CloudMigrations: Fix snapshot creation on Windows systems (#92981)

CloudMigrations: Fix snapshot creation on Windows systems (#92941)

* cloudmigration: improve error logging stringify body

* deps: update migration snapshot library to v1.3.0 (fix to Windows)

(cherry picked from commit 95ef2a1eb2)

Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-09-05 17:06:43 +03:00
committed by GitHub
co-authored by Matheus Macabu
parent a53321a823
commit 4c78ce50fc
4 changed files with 5 additions and 5 deletions
@@ -86,7 +86,7 @@ func (s3 *S3) PresignedURLUpload(ctx context.Context, presignedURL, key string,
if response.StatusCode >= 400 {
body, _ := io.ReadAll(response.Body)
return fmt.Errorf("unexpected response: status=%d body=%s", response.StatusCode, body)
return fmt.Errorf("unexpected response: status=%d body=%s", response.StatusCode, string(body))
}
return nil