# rpc error: code = Unimplemented desc = 服务 pb.UserService 的未知方法 GetUser

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

## 根因

服务端已注册该服务但未注册此特定方法。通常由过时的生成服务端 stub，或客户端使用比服务端更新的 proto 引起。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.0+ | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   protoc --go_out=. --go-grpc_out=. user.proto
go build ./...
   ```
2. **** (90% 成功率)
   ```
   grpcurl -plaintext localhost:50051 describe pb.UserService
   ```

## 无效尝试

- **** — The method handler must exist as a generated function; string manipulation on descriptors does not register a callable handler (90% 失败率)
- **** — The older method may not exist either; the correct fix is aligning proto versions (70% 失败率)
