Hi,
I am using @servicestack/client 2.0.8 and unable to resolve a situation where a servicestack service is throwing an exception but the client is failing to serialize the responseStatus from the request body, I get the error message and I can’t get the error message sent from the server.
[TypeError: right operand of 'instanceof' is not an object]
I’ve follwed the code to here on in the sourcecode
For brevity I have hardcoded the service call
public object Post(SiteSignOff request)
{
var response = new SiteSignOffResponse();
// await Mediator.Send(new CommandSiteSignOff(request.DriverJobId, UserSession.AmazonId,
// request.JobSiteRequirement));
throw new ArgumentException("Bad id");
return response;
}
I have checked the responseBody and it has a responseStatus
{
"responseStatus": {
"errorCode": "ArgumentException",
"message": "Bad id",
"stackTrace": null,
"errors": [],
"meta": null
}
}
And this is a screenshot of the response headers
Not sure what I’m missing.
Thanks