# aiohttp客户端异常：响应未就绪，请使用await

- **ID:** `python/aiohttp-client-response-not-ready`
- **领域:** python
- **类别:** runtime_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

未使用await就访问响应属性（如status、text），因为aiohttp响应是基于协程的。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.7 | active | — | — |
| 3.8 | active | — | — |
| 3.9 | active | — | — |

## 解决方案

1. **** (100% 成功率)
   ```
   async with session.get(url) as resp: data = await resp.text()
   ```
2. **** (95% 成功率)
   ```
   data = await resp.content.read()
   ```

## 无效尝试

- **** — aiohttp responses are not futures; .result() doesn't exist and causes AttributeError. (95% 失败率)
- **** — Delays don't guarantee the response is ready and waste time; the coroutine must be awaited. (70% 失败率)
