grafana/k6 · error
requesting presigned url: %w
Error message
requesting presigned url: %w
What it means
Error "requesting presigned url: %w" thrown in grafana/k6.
Source
Thrown at internal/js/modules/k6/browser/storage/file_persister.go:98
presignedURLRequestURL string,
headers map[string]string,
basePath string,
) *RemoteFilePersister {
return &RemoteFilePersister{
presignedURLRequestURL: presignedURLRequestURL,
headers: headers,
basePath: basePath,
httpClient: &http.Client{
Timeout: time.Second * 10,
},
}
}
// Persist will upload the contents of data to a remote location.
func (r *RemoteFilePersister) Persist(ctx context.Context, path string, data io.Reader) (err error) {
psResp, err := r.requestPresignedURL(ctx, path)
if err != nil {
return fmt.Errorf("requesting presigned url: %w", err)
}
req, err := newFileUploadRequest(ctx, psResp, data)
if err != nil {
return fmt.Errorf("creating upload request: %w", err)
}
resp, err := r.httpClient.Do(req) //nolint:gosec
if err != nil {
return fmt.Errorf("performing upload request: %w", err)
}
defer resp.Body.Close() //nolint:errcheck
if _, err := io.Copy(io.Discard, resp.Body); err != nil {
return fmt.Errorf("draining upload response body: %w", err)
}
if err := checkStatusCode(resp); err != nil {View on GitHub (pinned to 93accf6570)
When it happens
Trigger: Thrown at internal/js/modules/k6/browser/storage/file_persister.go:98 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of grafana/k6@93accf6570 (2026-08-15).
Data as JSON: /api/errors/d404bef6994be0dd.
Report an issue: GitHub.