Skip to content

Connection Reset by peer error using aiohttp and asyncio #5969

Answered by webknjaz
parth995 asked this question in Q&A
Discussion options

You must be logged in to vote

[Errno 54] Connection reset by peer

This means that the server drops connections on the TCP level. Maybe because you're spamming them. Verify that with the server side. There's nothing we can do.

You could wrap tasks with try/except catching ClientConnectorError in order to ignore or retry after some backoff but that's it.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@parth995
Comment options

@bero-dev
Comment options

@a2liro
Comment options

Answer selected by webknjaz
Comment options

You must be logged in to vote
1 reply
@zengzzzzz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
invalid This doesn't seem right client reproducer: missing This PR or issue lacks code, which reproduce the problem described or clearly understandable STR
6 participants
Converted from issue

This discussion was converted from issue #5968 on August 27, 2021 10:25.