Skip to content

Commit 8d0e768

Browse files
authored
[image-builder-bob] retry on bad request (#18621)
1 parent e754fc6 commit 8d0e768

File tree

1 file changed

+4
-0
lines changed
  • components/image-builder-bob/pkg/proxy

1 file changed

+4
-0
lines changed

components/image-builder-bob/pkg/proxy/proxy.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ func (proxy *Proxy) reverse(alias string) *httputil.ReverseProxy {
202202

203203
return true, nil
204204
}
205+
if resp.StatusCode == http.StatusBadRequest {
206+
log.WithField("URL", resp.Request.URL.String()).Warn("bad request")
207+
return true, nil
208+
}
205209

206210
return false, nil
207211
}

0 commit comments

Comments
 (0)