# rpc 错误：代码 = Unimplemented 描述 = 未知服务 helloworld.Greeter

- **ID:** `go/grpc-unimplemented-service`
- **领域:** go
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

客户端调用了服务器尚未注册的 gRPC 服务。服务器可能未正确编译 .proto 文件，或缺少服务注册。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.x | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   In server main: pb.RegisterGreeterServer(s, &server{})
   ```
2. **** (90% 成功率)
   ```
   protoc --go_out=. --go-grpc_out=. helloworld.proto
   ```

## 无效尝试

- **** — The server binary still contains old generated code, so the service is still unavailable. (80% 失败率)
- **** — This will only produce a different Unimplemented error, not fix the root cause. (90% 失败率)
