in src/RAPIDClient.js [110:116]
postInvocationError(error, id, callback) {
let response = Errors.toRapidResponse(error);
let bodyString = _trySerializeResponse(response);
let xrayString = XRayError.formatted(error);
this.nativeClient.error(encodeURIComponent(id), bodyString, xrayString);
callback();
}