-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KeyError: <aiohttp.connector._TransportPlaceholder> #2193
Comments
After some more investigating, I think the issue is that I somehow I've fixed my code, but it seems to me that this is still an issue in aiohttp. I should either get a more helpful exception or |
fixed by 941a218 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
I'm not sure if this is a bug in aiohttp, but if it's a bug in my code, this error doesn't tell my anything:
So,
placeholder
is added toself._acquired
(line 379) and then removed again (line 386), but inbetween it has already been removed, hence theKeyError
.The culprit is
self._create_connection(req)
(line 382), and eventuallyself._loop.create_connection()
(line 732), and then I'm losing track.Anyway, a simple
if placeholder in self._acquired:
inserted in line 386 seems to fix the issue for me. Or it could be something wrong with my code, but then I still have no idea what it is I'm doing wrong. I'd appreciate any pointers what could cause this.I can reproduce, but unfortunately not with simple, sharable code.
The text was updated successfully, but these errors were encountered: