{
  "id": "go/grpc-invalid-argument-missing-field",
  "signature": "rpc error: code = InvalidArgument desc = invalid field: name: value is empty, must be a non-empty string",
  "signature_zh": "rpc错误：代码=无效参数 描述=无效字段：name：值为空，必须是非空字符串",
  "regex": "rpc\\ error:\\ code\\ =\\ InvalidArgument\\ desc\\ =\\ invalid\\ field:\\ name:\\ value\\ is\\ empty,\\ must\\ be\\ a\\ non\\-empty\\ string",
  "domain": "go",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "The client sent a protobuf message with a required field left empty or invalid, violating server-side validation rules.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端发送的protobuf消息中必填字段为空或无效，违反了服务器端验证规则。",
  "versions": [
    {
      "version": "1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.23",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Ignoring the error and resending the same message.",
      "why_fails": "The message is still invalid; error will repeat.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Setting the field to a random non-empty string without understanding the requirement.",
      "why_fails": "May cause data corruption or further validation errors.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Validate all required fields before sending the RPC.",
      "success_rate": 0.95,
      "how": "if req.Name == \"\" { return errors.New(\"name must not be empty\") }\nresp, err := client.CreateUser(ctx, req)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use protovalidate library to enforce constraints client-side.",
      "success_rate": 0.9,
      "how": "import \"github.com/bufbuild/protovalidate-go\"\nvalidator, _ := protovalidate.New()\nif err := validator.Validate(req); err != nil { return err }",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}