# rpc 错误：代码 = Unknown 描述 = 无法反序列化请求：proto：语法错误

- **ID:** `go/grpc-unknown-deserialization-failure`
- **领域:** go
- **类别:** data_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

protobuf 二进制负载损坏或未正确序列化，导致反序列化失败。

## 版本兼容性

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

## 解决方案

1. **** (85% 成功率)
   ```
   // Use go.mod to pin google.golang.org/protobuf to the same version.
   ```
2. **** (75% 成功率)
   ```
   type logCodec struct{}; // implement Codec interface and log bytes.
   ```

## 无效尝试

- **** — The same corrupted bytes will fail again. (90% 失败率)
- **** — Version mismatch can cause wire format incompatibility. (70% 失败率)
