MCPcopy Create free account
hub / github.com/openclaw/gogcli / isRetryableSlidesImageRequestError

Function isRetryableSlidesImageRequestError

internal/cmd/slides_shared.go:301–314  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

299}
300
301func isRetryableSlidesImageRequestError(err error) bool {
302 var apiErr *gapi.Error
303 if errors.As(err, &apiErr) {
304 if apiErr.Code >= 500 {
305 return true
306 }
307 if apiErr.Code == 400 && strings.Contains(apiErr.Message, "retrieving the image") {
308 return true
309 }
310 }
311 errStr := err.Error()
312 return strings.Contains(errStr, "retrieving the image") ||
313 strings.Contains(errStr, "provided image should be publicly accessible")
314}

Callers 1

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected