rapp-project / rapp-platform

RAPP Platform is a collection of ROS nodes and back-end processes that aim to deliver ready-to-use generic services to robots
Other
28 stars 20 forks source link

Web services do not return specific error when wrong type parameters are provided #332

Closed etsardou closed 8 years ago

etsardou commented 8 years ago

For example in this Python API call the input argument should be a string:

res=self.ch.cognitiveExerciseSelect(3)

The response is:

500 Server Error: Internal Server Error for url: http://155.207.19.229:9001/hop/cognitive_test_chooser

and the error printed in the RAPP PLatform console is:

[ERROR] [WallTime: 1465366969.378738] [Client 25] [id: w5Go5BsVXG] call_service FieldTypeMismatchException: rapp_platform_ros_communications/testSelectorSrvRequest message requires a string for field testType, but got a <type 'int'>

Obviously this should be returned to the user in order to know what they should correct.