{"record":{"id":"c3a8422113873a49","repo":"grafana/k6","slug":"performing-request-w","errorCode":null,"errorMessage":"performing request: %w","messagePattern":"performing request: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/browser/storage/file_persister.go","lineNumber":147,"sourceCode":"\t}\n\n\treq, err := http.NewRequestWithContext(\n\t\tctx,\n\t\thttp.MethodPost,\n\t\tr.presignedURLRequestURL,\n\t\tbytes.NewReader(b),\n\t)\n\tif err != nil {\n\t\treturn PresignedURLResponse{}, fmt.Errorf(\"creating request: %w\", err)\n\t}\n\n\tfor k, v := range r.headers {\n\t\treq.Header.Add(k, v)\n\t}\n\n\tresp, err := r.httpClient.Do(req) //nolint:gosec\n\tif err != nil {\n\t\treturn PresignedURLResponse{}, fmt.Errorf(\"performing request: %w\", err)\n\t}\n\tdefer resp.Body.Close() //nolint:errcheck\n\n\tif err := checkStatusCode(resp); err != nil {\n\t\treturn PresignedURLResponse{}, err\n\t}\n\n\treturn readPresignedURLResponse(resp)\n}\n\nfunc buildPresignedRequestBody(basePath, path string) ([]byte, error) {\n\tb := struct {\n\t\tService   string `json:\"service\"`\n\t\tOperation string `json:\"operation\"`\n\t\tFiles     []struct {\n\t\t\tName string `json:\"name\"`\n\t\t} `json:\"files\"`\n\t}{","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/js/modules/k6/browser/storage/file_persister.go#L129-L165","documentation":"Raised in requestPresignedURL when httpClient.Do fails while POSTing the JSON body to the presigned-URL endpoint (10s timeout applies). This is the transport failure of obtaining the upload target: DNS resolution failure, connection refused, TLS handshake error, or timeout — distinct from a non-2xx response, which is reported separately by checkStatusCode.","triggerScenarios":"Thrown at internal/js/modules/k6/browser/storage/file_persister.go:147 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify network connectivity, DNS, and proxy configuration to the cloud endpoint","Retry the request; transient network errors are expected during load tests","Check TLS/CA configuration if handshakes fail in restricted environments","Confirm the endpoint is reachable and not blocked by firewall rules"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ffac6f245854c1b8adc6a69857c76a15f90022","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}