You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you point to GET /model/anyvalidvalue such as GET /fruits/200 where the fruit ID 200 does not exist
Current Behavior
You will get only the http status500, no error message saying "no found with id ". Not even custom error messages are being exposed to the client application.
Received the correct http err status but most important is that the appropriate error message comes in the json object.
More details and our work around
Our simple solution as app developers to give demos so far was to include the following code in the sequence.ts in our LB4 test application.
From
}catch(err){this.reject(context,err);}
To
A temporarily solution for our demos. Note: We tried {expose:true} alone but still didn't work
Steps to reproduce
Currently if you point to GET /model/anyvalidvalue such as GET /fruits/200 where the fruit ID 200 does not exist
Current Behavior
You will get only the http status 500, no error message saying "no found with id ". Not even custom error messages are being exposed to the client application.
Relates to #1469
Expected Behavior
Received the correct http err status but most important is that the appropriate error message comes in the json object.
More details and our work around
Our simple solution as app developers to give demos so far was to include the following code in the sequence.ts in our LB4 test application.
From
To
A temporarily solution for our demos. Note: We tried {expose:true} alone but still didn't work
With the latter, then LB4 is sending an appropriate message so far in our new property errorMessage. I understand this is just a work around,.
The text was updated successfully, but these errors were encountered: