# rpc 错误：代码 = NotFound 描述 = 方法未找到：/helloworld.Greeter/SayHello

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

## 根因

服务器没有所请求方法的处理程序。这可能是因为客户端和服务器 proto 定义不匹配，或者方法未实现。

## 版本兼容性

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

## 解决方案

1. **** (95% 成功率)
   ```
   Add the SayHello method to your server struct and call pb.RegisterGreeterServer(s, &server{}) after implementing it.
   ```
2. **** (90% 成功率)
   ```
   Recompile the .proto and replace the generated code in both applications.
   ```

## 无效尝试

- **** — The server still won't have a handler for it. (90% 失败率)
- **** — The server binary does not include the new method. (80% 失败率)
