I have a rest service call that responds as expected using the service test facility.
The error response (in the case of an error) gives for example:
pre{
"status": 401,
"uri": "http://owd.comp-solutions.org.uk/instructor/login",
"response": {
"error": {
"code": 401,
"message": "Unauthorised"
}
}
}/pre
If I try to execute the sevice from my app, although an error condition occurs, i do not get the expected error response, and my error handling code fails. The json reponse I am getting (using breakpoints in chrome) are as follows
pre{
"code":"PTCT022",
"description":"Error while sending request: null"
}/pre
When the call is a successful call it works correctly. Why am I getting this spurious error message when executing the function from my app (in the chrome browser on test).