MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / isRequestScopedNotFoundMessage

Function isRequestScopedNotFoundMessage

sdk/cliproxy/auth/conductor.go:4017–4025  ·  view source on GitHub ↗
(message string)

Source from the content-addressed store, hash-verified

4015 return next, backoffLevel
4016}
4017func isRequestScopedNotFoundMessage(message string) bool {
4018 if message == "" {
4019 return false
4020 }
4021 lower := strings.ToLower(message)
4022 return strings.Contains(lower, "item with id") &&
4023 strings.Contains(lower, "not found") &&
4024 strings.Contains(lower, "items are not persisted when `store` is set to false")
4025}
4026
4027func isRequestScopedNotFoundResultError(err *Error) bool {
4028 if err == nil || statusCodeFromResult(err) != http.StatusNotFound {

Callers 2

isRequestInvalidErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected