# gRPC 错误：UNIMPLEMENTED：未找到方法：/myapp.MyService/DoSomething

- **ID:** `api/grpc-unimplemented-service`
- **领域:** api
- **类别:** protocol_error
- **错误码:** `12`
- **验证级别:** ai_generated
- **修复率:** 85%

## 根因

gRPC 客户端调用了服务器未注册或未实现的方法。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| gRPC v1.50 | active | — | — |
| protobuf v3.21 | active | — | — |
| Go gRPC v1.56 | active | — | — |

## 解决方案

1. ```
   Regenerate the server stub from the .proto file and implement the missing RPC method. Example: `protoc --go_out=. --go-grpc_out=. myapp.proto` then add the method handler.
   ```
2. ```
   Check that the server binary has been recompiled with the latest proto definition and deployed correctly.
   ```

## 无效尝试

- **** — The method is still missing from the server's implementation. (95% 失败率)
- **** — The client expects a valid response; empty responses may cause downstream errors. (70% 失败率)
