I have wrote the C# API programe to get data from different location.
All used to work fine.Suddenly it's generating error becuase the records not available
in the API records.(requesting records)There is no way to find Candidate avaiable or not.
see below link how the API request send.
500 Internal Server Error
"message": "there was an unknown error getting candidate stream."
string urlCandatestream = "/company/" + CompanyID + "/position/" + positionID + "/candidate/" + candidateID + "/stream";
var request = new RestRequest(urlCandatestream, Method.GET);
// rqst.Proxy = GlobalProxySelection.GetEmptyWebProxy();
varRequest = request.ToString();
response = await _restClent.ExecuteTaskAsync(request);
VarRequestResults = response.Content;
catch (Exception ex)
throw new Exception("Error executing request to " + urlCandatestream, ex);
Any logic or idea how to get rid of this and only get available records.