# RuntimeWarning: 协程 'get_data' 从未被 await

- **ID:** `python/fastapi-await-missing`
- **领域:** python
- **类别:** runtime_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

在异步路由中调用异步函数时未使用 await，导致返回协程对象而非数据。

## 版本兼容性

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

## 解决方案

1. **** (95% 成功率)
   ```
   data = await get_data()
   ```
2. **** (85% 成功率)
   ```
   Make route sync def and call sync version of helper
   ```

## 无效尝试

- **** — Cannot run event loop inside a running loop; raises RuntimeError. (85% 失败率)
- **** — Silences signal but response body is still a coroutine. (80% 失败率)
