# 未知错误：gRPC：响应尾部缺少状态详细信息

- **ID:** `grpc/status-details-missing`
- **领域:** grpc
- **类别:** protocol_error
- **验证级别:** ai_generated
- **修复率:** 85%

## 根因

服务器发送的 gRPC 响应缺少必需的 `grpc-status-details-bin` 尾部，客户端期望该尾部以进行更丰富的错误处理。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| gRPC Go 1.54.0 | active | — | — |
| gRPC Python 1.50.0 | active | — | — |

## 解决方案

1. ```
   Ensure the server sets the `grpc-status-details-bin` trailer using the `google.rpc.Status` proto. Example in Go: `st := status.New(codes.Internal, "error").WithDetails(&errdetails.RetryInfo{RetryDelay: &duration.Duration{Seconds: 1}})` then `st.Err()`.
   ```
2. ```
   On the client, fall back to parsing `grpc-status` and `grpc-message` trailers if details are missing.
   ```

## 无效尝试

- **** — Retries are unrelated to status details in trailers. (60% 失败率)
- **** — Status details are only in trailers; headers may not contain the full error info. (80% 失败率)
- **** — The issue is not version-specific; it's about whether the server populates the trailer. (40% 失败率)
