aiohttp-json-rpc icon indicating copy to clipboard operation
aiohttp-json-rpc copied to clipboard

randomly InvalidStateError

Open andrew-ld opened this issue 5 years ago • 2 comments

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

andrew-ld avatar May 06 '20 09:05 andrew-ld

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 avatar May 23 '20 14:05 fscherf

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

andrew-ld avatar May 24 '20 08:05 andrew-ld