aiohttp-json-rpc
aiohttp-json-rpc copied to clipboard
randomly InvalidStateError
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
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?
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