JuliusBrussee/caveman · error
cachebench: %s replay base URL: %w
Error message
cachebench: %s replay base URL: %w
What it means
Error "cachebench: %s replay base URL: %w" thrown in JuliusBrussee/caveman.
Source
Thrown at cacheengine/cachebench/replay_http.go:89
return nil, errors.New("cachebench: replay request timeout must be between 1 second and 1 hour")
}
bases := map[string]string{
"openai": "https://api.openai.com",
"anthropic": "https://api.anthropic.com",
"gemini": "https://generativelanguage.googleapis.com",
}
for provider, value := range config.BaseURLs {
provider = strings.ToLower(strings.TrimSpace(provider))
if provider != "openai" && provider != "anthropic" && provider != "gemini" && provider != "bedrock" {
return nil, fmt.Errorf("cachebench: unsupported replay base URL provider %q", provider)
}
bases[provider] = value
}
parsed := make(map[string]*url.URL, len(bases))
for provider, value := range bases {
base, err := validateReplayBaseURL(value, config.AllowInsecureLoopback)
if err != nil {
return nil, fmt.Errorf("cachebench: %s replay base URL: %w", provider, err)
}
parsed[provider] = base
}
client := config.Client
if client == nil {
client = &http.Client{
Timeout: requestTimeout,
Transport: &http.Transport{
Proxy: nil,
DialContext: (&net.Dialer{Timeout: 10 * time.Second, KeepAlive: 30 * time.Second}).DialContext,
ForceAttemptHTTP2: true,
TLSClientConfig: &tls.Config{MinVersion: tls.VersionTLS12},
TLSHandshakeTimeout: 10 * time.Second,
ResponseHeaderTimeout: 90 * time.Second,
IdleConnTimeout: 90 * time.Second,
},
}
} else {View on GitHub (pinned to 27d5a3981a)
Solutions
- Fix the replay base URL for the named provider.
When it happens
Trigger: Thrown at cacheengine/cachebench/replay_http.go:89 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of JuliusBrussee/caveman@27d5a3981a (2026-08-15).
Data as JSON: /api/errors/98798291cba81c2b.
Report an issue: GitHub.