Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

randomly InvalidStateError #51

Open
andrew-ld opened this issue May 6, 2020 · 2 comments
Open

randomly InvalidStateError #51

andrew-ld opened this issue May 6, 2020 · 2 comments
Labels

Comments

@andrew-ld
Copy link

http_1                | Error handling request
http_1                | invalid state
http_1                | Traceback (most recent call last):
http_1                |   File "/usr/local/lib/python3.8/site-packages/aiohttp_json_rpc/client.py", line 100, in _handle_msgs
http_1                |     self._pending[msg.data['id']].set_result(
http_1                | asyncio.exceptions.InvalidStateError: invalid state
@fscherf
Copy link
Contributor

fscherf commented May 23, 2020

hi @andrew-ld,

sorry that it took me so long. Can you provide some information on how your setup looks and in what kind of situations this happens to you?

@fscherf fscherf added the bug label May 23, 2020
@andrew-ld
Copy link
Author

In my setup I have 3 docker containers in all of which there is an rpc server and each container connects with the other containers.

This problem only occurs when I send a request to the container that also contains an http server using aiohttp

reading python docs this problem would only be possible only if you use .set_result more than once in the Future

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants