vector-python-sdk icon indicating copy to clipboard operation
vector-python-sdk copied to clipboard

message took too long to complete

Open cfreidsy opened this issue 2 years ago • 3 comments
trafficstars

Every tutorial I try running produces the following:

C:\Users\reidsy\Documents\vector-python-sdk-master\vector-python-sdk-master\examples\tutorials>py 01_hello_world.py 21:18:53.926 robot.Robot WARNING No serial number or name provided. Automatically selecting 00803473 21:18:53.942 connection.Connection INFO Connecting to 192.168.1.18:443 for Vector-C7T5 using C:\Users\reidsy.anki_vector\Vector-C7T5-00803473.cert 21:19:00.261 connection.Connection INFO BehaviorControl control_granted_response { } Traceback (most recent call last): File "C:\Users\reidsy\AppData\Roaming\Python\Python36\site-packages\anki_vector\connection.py", line 749, in log_handler result = await func(*args, **kwargs) File "C:\Users\reidsy\AppData\Roaming\Python\Python36\site-packages\anki_vector\animation.py", line 168, in load_animation_list return await self._load_animation_list() File "C:\Users\reidsy\AppData\Roaming\Python\Python36\site-packages\anki_vector\animation.py", line 134, in _load_animation_list result = await self.grpc_interface.ListAnimations(req) File "C:\Users\reidsy\AppData\Roaming\Python\Python36\site-packages\aiogrpc\channel.py", line 40, in call return await fut grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with: status = StatusCode.DEADLINE_EXCEEDED details = "ListAnimations request timed out" debug_error_string = "UNKNOWN:Error received from peer ipv4:192.168.1.18:443 {grpc_message:"ListAnimations request timed out", grpc_status:4, created_time:"2023-04-07T01:19:05.664456406+00:00"}"

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "01_hello_world.py", line 33, in main() File "01_hello_world.py", line 27, in main with anki_vector.Robot(args.serial) as robot: File "C:\Users\reidsy\AppData\Roaming\Python\Python36\site-packages\anki_vector\robot.py", line 742, in enter self.connect(self.behavior_activation_timeout) File "C:\Users\reidsy\AppData\Roaming\Python\Python36\site-packages\anki_vector\robot.py", line 663, in connect anim_request = self._anim.load_animation_list() File "C:\Users\reidsy\AppData\Roaming\Python\Python36\site-packages\anki_vector\connection.py", line 806, in result return future.result() File "C:\Users\reidsy\AppData\Local\Programs\Python\Python36\lib\concurrent\futures_base.py", line 405, in result return self.__get_result() File "C:\Users\reidsy\AppData\Local\Programs\Python\Python36\lib\concurrent\futures_base.py", line 357, in __get_result raise self._exception File "C:\Users\reidsy\AppData\Roaming\Python\Python36\site-packages\anki_vector\connection.py", line 751, in log_handler raise connection_error(rpc_error) from rpc_error anki_vector.exceptions.VectorTimeoutException: StatusCode.DEADLINE_EXCEEDED: ListAnimations request timed out

Message took too long to complete.

cfreidsy avatar Apr 07 '23 01:04 cfreidsy

Vector probably took long to respond hence the timeout. Why it took long to respond? I don't know. But I get this regularly when Vector is idle for example and I try to interact with it.

pepedocs avatar Apr 21 '23 09:04 pepedocs

I found the issue. It was an antivirus issue.

cfreidsy avatar Apr 23 '23 00:04 cfreidsy

This happens to me a lot, but I usually just keep on running the program and it works every 3-4 tries.

GruntingRhino avatar Jun 20 '23 14:06 GruntingRhino