aio-libs / aio-libs/aiohttp

Task exception was never retrieved on v3.8.3

Offen
#6,978 44 Kommentare 9 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
16.5k
Forks
2.4k
Ø Merge
17 Std. 22 Min.
Gemergte PRs (30 T.)
212

Beschreibung

### 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.