Closed heuristicus closed 2 years ago
Should just print that the password was wrong and exit gracefully
Traceback (most recent call last): File "/home/spot/spot_ws/devel/lib/spot_driver/spot_ros", line 15, in <module> exec(compile(fh.read(), python_script, 'exec'), context) File "/home/spot/spot_ws/src/spot_ros/spot_driver/scripts/spot_ros", line 7, in <module> SR.main() File "/home/spot/spot_ws/src/spot_ros/spot_driver/src/spot_driver/spot_ros.py", line 522, in main self.spot_wrapper = SpotWrapper(self.username, self.password, self.hostname, self.logger, self.rates, self.callbacks) File "/home/spot/spot_ws/src/spot_ros/spot_driver/src/spot_driver/spot_wrapper.py", line 253, in __init__ self._robot.authenticate(self._username, self._password) File "/home/spot/.local/lib/python3.8/site-packages/bosdyn/client/robot.py", line 336, in authenticate user_token = auth_client.auth(username, password, self.app_token, timeout=timeout) File "/home/spot/.local/lib/python3.8/site-packages/bosdyn/client/auth.py", line 116, in auth return self.call(self._stub.GetAuthToken, req, _token_from_response, _error_from_response, File "/home/spot/.local/lib/python3.8/site-packages/bosdyn/client/common.py", line 226, in processor return func(self, rpc_method, request, value_from_response=value_from_response, File "/home/spot/.local/lib/python3.8/site-packages/bosdyn/client/common.py", line 345, in call return self.handle_response(response, error_from_response, value_from_response) File "/home/spot/.local/lib/python3.8/site-packages/bosdyn/client/common.py", line 353, in handle_response raise exc bosdyn.client.auth.InvalidLoginError: bosdyn.api.GetAuthTokenResponse (InvalidLoginError): Provided username/password is invalid. [spot/spot_ros-3] process has died [pid 4610, exit code 1, cmd /home/spot/spot_ws/devel/lib/spot_driver/spot_ros joint_states:=/joint_states tf:=/tf __name:=spot_ros __log:=/home/spot/.ros/log/2f344998-cf53-11eb- aff4-1d1cc9ca43a6/spot-spot_ros-3.log]. log file: /home/spot/.ros/log/2f344998-cf53-11eb-aff4-1d1cc9ca43a6/spot-spot_ros-3*.log
Should just print that the password was wrong and exit gracefully