{"record":{"id":"c169fb853e058956","repo":"grafana/k6","slug":"can-t-convert-method-info-w","errorCode":null,"errorMessage":"can't convert method info: %w","messagePattern":"can't convert method info: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/js/modules/k6/grpc/client.go","lineNumber":316,"sourceCode":"\tc.addr = addr\n\tc.conn, err = grpcext.Dial(ctx, addr, c.types, opts...)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\n\tif !p.UseReflectionProtocol {\n\t\treturn true, nil\n\t}\n\n\tctx = metadata.NewOutgoingContext(ctx, p.ReflectionMetadata)\n\n\tfdset, err := c.conn.Reflect(ctx)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\t_, err = c.convertToMethodInfo(fdset)\n\tif err != nil {\n\t\treturn false, fmt.Errorf(\"can't convert method info: %w\", err)\n\t}\n\n\treturn true, err\n}\n\n// HealthCheck checks if the server side is up and ready to serve responses\nfunc (c *Client) HealthCheck(svc *string) (*grpcext.HealthCheckResponse, error) {\n\tvar service string\n\tif svc != nil {\n\t\tservice = *svc\n\t}\n\treturn c.conn.HealthCheck(c.vu.Context(), service)\n}\n\n// Invoke creates and calls a unary RPC by fully qualified method name\nfunc (c *Client) Invoke(\n\tmethod string,\n\treq sobek.Value,","sourceCodeStart":298,"sourceCodeEnd":334,"githubUrl":"https://github.com/grafana/k6/blob/8d06114777191d21ef885d05c5f8aa9e1ed838ae/internal/js/modules/k6/grpc/client.go#L298-L334","documentation":"Raised in Client.Connect after a successful server reflection when the returned FileDescriptorSet cannot be converted into callable method info — reflected descriptors are inconsistent or incomplete. Wraps the conversion error.","triggerScenarios":"Thrown at internal/js/modules/k6/grpc/client.go:285 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for which descriptor failed to convert","Verify the server's reflection data is complete and consistent","Fall back to loading a local protoset with client.load() instead of reflection"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8d06114777191d21ef885d05c5f8aa9e1ed838ae","analyzedAt":"2026-08-18T03:05:52.393Z","contentChangedAt":"2026-08-18T03:05:52.393Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}