{
  "id": "go/grpc-unimplemented-streaming-not-supported",
  "signature": "rpc error: code = Unimplemented desc = method /myservice.MyService/StreamData is a streaming method but the client is using unary call",
  "signature_zh": "rpc错误：代码=未实现 描述=方法/myservice.MyService/StreamData是流式方法，但客户端使用了非流式调用",
  "regex": "rpc\\ error:\\ code\\ =\\ Unimplemented\\ desc\\ =\\ method\\ /myservice\\.MyService/StreamData\\ is\\ a\\ streaming\\ method\\ but\\ the\\ client\\ is\\ using\\ unary\\ call",
  "domain": "go",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "The client attempted to call a server-streaming or bidirectional streaming method using a unary RPC stub.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端尝试使用非流式RPC存根调用服务器流式或双向流式方法。",
  "versions": [
    {
      "version": "1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Use the same stub but with different parameters.",
      "why_fails": "The stub type is fixed; unary stub cannot handle streaming methods.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignore the error and treat the response as a single message.",
      "why_fails": "The server expects a stream; the client must use the correct streaming API.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use the correct streaming client stub for the method.",
      "success_rate": 0.95,
      "how": "stream, err := client.StreamData(ctx, &pb.StreamRequest{})\nif err != nil { return err }\nfor {\n    resp, err := stream.Recv()\n    if err == io.EOF { break }\n    if err != nil { return err }\n    // process resp\n}",
      "condition": "",
      "sources": []
    },
    {
      "action": "Regenerate protobuf code to ensure proper client stubs are created.",
      "success_rate": 0.9,
      "how": "protoc --go_out=. --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false myservice.proto",
      "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": "2025-12-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}