# asyncio.TimeoutError: Request timed out after 30 seconds

- **ID:** `python/starlette-request-timeout`
- **Domain:** python
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Starlette 应用的某个请求处理时间超过服务器或客户端设置的超时时间。

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (85% success)
   ```
   使用异步操作或缓存，避免阻塞事件循环
   ```
2. **** (80% success)
   ```
   uvicorn main:app --timeout-keep-alive 60
   ```

## Dead Ends

- **** — 如果服务器端处理确实很慢，增加超时只是延迟错误出现。 (50% fail)
- **** — 连接可能已被关闭，无法收到响应。 (80% fail)
