{"record":{"id":"0e9b5a5855fb10fd","repo":"JuliusBrussee/caveman","slug":"cachebench-provider-response-exceeds-configured-l","errorCode":null,"errorMessage":"cachebench: provider response exceeds configured limit","messagePattern":"cachebench: provider response exceeds configured limit","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cacheengine/cachebench/replay_http.go","lineNumber":157,"sourceCode":"\t\treturn ReplayResponse{}, errors.New(\"cachebench: could not build provider request\")\n\t}\n\trequest.Header.Set(\"content-type\", \"application/json\")\n\trequest.Header.Set(\"accept\", \"application/json\")\n\trequest.Header.Set(\"user-agent\", \"caveman-cachebench-replay/1\")\n\tif err := transport.authorize(provider, outbound.Region, request, outbound.Body); err != nil {\n\t\treturn ReplayResponse{}, err\n\t}\n\tresponse, err := transport.client.Do(request)\n\tif err != nil {\n\t\treturn ReplayResponse{}, errors.New(\"cachebench: provider request failed\")\n\t}\n\tdefer response.Body.Close()\n\tbody, err := io.ReadAll(io.LimitReader(response.Body, transport.maxResponseBytes+1))\n\tif err != nil {\n\t\treturn ReplayResponse{StatusCode: response.StatusCode}, errors.New(\"cachebench: provider response read failed\")\n\t}\n\tif int64(len(body)) > transport.maxResponseBytes {\n\t\treturn ReplayResponse{StatusCode: response.StatusCode}, errors.New(\"cachebench: provider response exceeds configured limit\")\n\t}\n\treturn ReplayResponse{\n\t\tStatusCode: response.StatusCode, Body: body,\n\t\tProviderRequestID: providerRequestID(response.Header),\n\t}, nil\n}\n\nfunc (transport *HTTPReplayTransport) endpoint(provider string, outbound ReplayOutbound) (*url.URL, error) {\n\tif !validBoundedText(outbound.Model, 512, false) {\n\t\treturn nil, errors.New(\"cachebench: invalid replay model\")\n\t}\n\tbase := transport.baseURLs[provider]\n\tif provider == \"bedrock\" && base == nil {\n\t\tif !validAWSRegion(outbound.Region) {\n\t\t\treturn nil, errors.New(\"cachebench: invalid Bedrock region\")\n\t\t}\n\t\tparsed, _ := url.Parse(\"https://bedrock-runtime.\" + outbound.Region + \".amazonaws.com\")\n\t\tbase = parsed","sourceCodeStart":139,"sourceCodeEnd":175,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/27d5a3981a347890211bb1bf2439e5c821a63bc9/cacheengine/cachebench/replay_http.go#L139-L175","documentation":"Error \"cachebench: provider response exceeds configured limit\" thrown in JuliusBrussee/caveman.","triggerScenarios":"Thrown at cacheengine/cachebench/replay_http.go:157 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The provider response exceeded the configured limit; narrow the request or raise the limit."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"27d5a3981a347890211bb1bf2439e5c821a63bc9","analyzedAt":"2026-08-15T09:26:11.751Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}