{"record":{"id":"c9a7ad8e62e698fd","repo":"grafana/k6","slug":"failed-to-create-retry-interceptors-w","errorCode":null,"errorMessage":"failed to create retry interceptors: %w","messagePattern":"failed to create retry interceptors: %w","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/cloudapi/insights/client.go","lineNumber":242,"sourceCode":"\t} else {\n\t\tif cfg.TLSConfig.CertFile != \"\" {\n\t\t\tcreds, err := credentials.NewClientTLSFromFile(cfg.TLSConfig.CertFile, \"\")\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"failed to load TLS credentials from file: %w\", err)\n\t\t\t}\n\t\t\topts = append(opts, grpc.WithTransportCredentials(creds))\n\t\t} else {\n\t\t\topts = append(opts, grpc.WithTransportCredentials(credentials.NewTLS(&tls.Config{MinVersion: tls.VersionTLS13})))\n\t\t}\n\t}\n\n\tif cfg.AuthConfig.Enabled {\n\t\topts = append(opts, grpc.WithPerRPCCredentials(newPerRPCCredentials(cfg.AuthConfig)))\n\t}\n\n\trI, err := retryInterceptor(cfg.RetryConfig)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to create retry interceptors: %w\", err)\n\t}\n\n\topts = append(opts, grpc.WithChainUnaryInterceptor([]grpc.UnaryClientInterceptor{rI}...))\n\n\treturn opts, nil\n}\n\nfunc retryInterceptor(retryConfig ClientRetryConfig) (grpc.UnaryClientInterceptor, error) {\n\trSC, err := retryableStatusCodes(retryConfig.RetryableStatusCodes)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to parse retryable status codes: %w\", err)\n\t}\n\twithCodes := grpcRetry.WithCodes(rSC...)\n\twithMax := grpcRetry.WithMax(retryConfig.MaxAttempts)\n\twithPerRetryTimeout := grpcRetry.WithPerRetryTimeout(retryConfig.PerRetryTimeout)\n\tcallOptions := []grpcRetry.CallOption{withCodes, withMax, withPerRetryTimeout}\n\n\tbackoffConfig := retryConfig.BackoffConfig","sourceCodeStart":224,"sourceCodeEnd":260,"githubUrl":"https://github.com/grafana/k6/blob/01ffac6f245854c1b8adc6a69857c76a15f90022/internal/cloudapi/insights/client.go#L224-L260","documentation":"Wrapped error from dialOptionsFromClientConfig: building the gRPC retry unary interceptor from the client retry config failed — most commonly because the retryable status codes string could not be parsed.","triggerScenarios":"Thrown at internal/cloudapi/insights/client.go:242 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the retryable status codes configuration (valid comma-separated gRPC code names)","Provide at least one valid retryable status code if retries are configured"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ffac6f245854c1b8adc6a69857c76a15f90022","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}