aio-libs / aio-libs/aiohttp

Task exception was never retrieved on v3.8.3

オープン
#6,978 コメント 44 件 リアクション 9 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
16.5k
フォーク
2.4k
平均マージ
17時間 22分
マージ済み PR(30日)
212

説明

### Describe the bug

We bumped from v3.8.1 to v3.8.3 this morning and started seeing the following errors. No other changes were done to our project:
```
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 505, in start
request = self._request_factory(message, payload, self, writer, handler)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 446, in _make_request
return _cls(
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_request.py", line 811, in __init__
super().__init__(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_request.py", line 188, in __init__
assert transport is not None
AssertionError
```
And
```
Task exception was never retrieved
future: exception=AssertionError()>
```

### To Reproduce

1. We were using v3.8.1
2. Bump to v3.8.3

No other changes introduced from our side, those errors started appearing.

### Expected behavior

For that exception to be handled.

### Logs/tracebacks

```python-traceback
Added them on the description, adding them here as well:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 505, in start
request = self._request_factory(message, payload, self, writer, handler)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 446, in _make_request
return _cls(
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_request.py", line 811, in __init__
super().__init__(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_request.py", line 188, in __init__
assert transport is not None
AssertionError
```
And
```
Task exception was never retrieved
future: exception=AssertionError()>
```

### Python Version

```console
$ python --version
3.9.13
```

### aiohttp Version

```console
$ python -m pip show aiohttp
3.8.3
```

### multidict Version

```console
$ python -m pip show multidict
6.0.2
```

### yarl Version

```console
$ python -m pip show yarl
1.8.1
```

### OS

Docker image

### Related component

Server

### Additional context

I have added as much context as I had, if I left out anything relevant, happy to look for it and add it to the issue.

### Code of Conduct

- [X] I agree to follow the aio-libs Code of Conduct

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。