# asyncio.TimeoutError: 请求体读取超时，超过 60 秒

- **ID:** `python/starlette-request-body-timeout`
- **领域:** python
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

客户端发送请求体耗时过长，超过服务器的读取超时时间。

## 版本兼容性

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

## 解决方案

1. **** (85% 成功率)
   ```
   Implement a custom middleware to catch TimeoutError and return a 408 Request Timeout response.
   ```
2. **** (70% 成功率)
   ```
   Optimize client-side to send data faster or use chunked transfer encoding.
   ```

## 无效尝试

- **** — This can tie up server resources and doesn't fix slow clients; may lead to denial-of-service. (60% 失败率)
- **** — It will eventually timeout anyway or exhaust connections. (90% 失败率)
