Hi
This is my code
/**
* @param {String} from
* @param {String} to
* @param {String} u
* @param {String} t
* @returns {Promise.<Array.<ShoppingItem>>}
*/
getRatings(from, to, u, t) {
if(!from || !to || !u) {
return "Please provide mandatory fields";
}
}
{
"code": 14004,
"message": "Service invocation failed: ExceptionClass:\"JsonMappingException\" {Msg:\"Unrecognized token 'hello1': was expecting ('true', 'false' or 'null')\n at [Source: [true,hello1,hello2,null]; line: 1, column: 13] (through reference chain: Object[][1])\", Cause:\"Unrecognized token 'hello1': was expecting ('true', 'false' or 'null')\n at [Source: [true,hello1,hello2,null]; line: 1, column: 13]\"}"
}
Update: I found out that if I enter “null” in each variable I get a 200 response. Great!
Now, could error message be a bit more explicit? and aligned with the issue at hand?