Closed PierreSachot closed 5 days ago
@PierreSachot Thanks for your feedback, will take a look later.
Hi @PierreSachot I'm busy preparing the release for latest ROS2 Jazzy, I saw you already had a deep investigation to identify the root cause, please feel free to open a PR to fix it, I will also touch on it when I have some free time, thanks!
Description Rclnodejs execute function is triggering the client processResponse without having sent a request. This generates a new Error which is thrown and makes my server crash.
In order to debug it, we added the following logs inside rclnodejs:
lib/client.js
and here are the outputs:
Steps To Reproduce
Currently we do not have a simple way to reproduce this bug. We are using clients to connect to the
/${node}/describe_parameters
same forget_parameters
,list_parameters
andset_parameters
in order to retrieve them on our HMI.We did a
ros2 topic echo /parameter_events
but this final response is triggered without any parameter change.Expected Behavior Rclnodejs should ignore the response if there is no associated request. Also, rclnodejs should implement a way to catch this kind of errors.
Actual Behavior Rclnodejs crashes and this error is propagated to the server.