You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should the use of the timeout parameter generate the following on a timeout?
Traceback (most recent call last):
...
message = await self.C.deliver_message(timeout=3)
File "py3\lib\site-packages\hbmqtt\client.py", line 337, in deliver_message
if deliver_task.exception():
File "c:\python35\Lib\asyncio\futures.py", line 288, in exception
raise InvalidStateError('Exception is not set.')
asyncio.futures.InvalidStateError: Exception is not set.
The text was updated successfully, but these errors were encountered:
Hi, Can you describe the use case (sample script could be perfect). Is seems (because of InvalidStateError) that your client is not connected to a broker when deliver_message is called.
Previous comment analysis is wrong. There's obviously a problem with the management of the deliver_task. deliver_message should raise a asyncio.TimeoutError.
Should the use of the timeout parameter generate the following on a timeout?
Traceback (most recent call last):
...
message = await self.C.deliver_message(timeout=3)
File "py3\lib\site-packages\hbmqtt\client.py", line 337, in deliver_message
if deliver_task.exception():
File "c:\python35\Lib\asyncio\futures.py", line 288, in exception
raise InvalidStateError('Exception is not set.')
asyncio.futures.InvalidStateError: Exception is not set.
The text was updated successfully, but these errors were encountered: