I’m trying to implement normal select operation (get all documents from collection - SELECT * FROM travel-sample
.inventory.airline)
using .netsdk latest version
QueryAsync is working fine and giving proper result
but when I’m trying to read it then at 6th iterate , it gives error that The request was aborted: The request was canceled.
tries this with different options - increasing timeout etc but facing the same error at 6th row
below is my code
documentList = new List<JObject>();
try
{
var result = cluster.QueryAsync<dynamic>(command, queryOptions).GetAwaiter().GetResult();
if (limitRowsForOutput > -1)
{
var rows = result.Rows.ToEnumerable().Take(limitRowsForOutput);
foreach (var row in rows)
{
documentList.Add(JObject.FromObject(row));
}
}
else
{
var rows = result.Rows.ToEnumerable();
foreach (var row in result.Rows.ToEnumerable())
{
documentList.Add(JObject.FromObject(row));
}
//documentList = rows.Select(row => JObject.FromObject(row) as JObject).ToList();
}
}
catch (Exception ex)
{
throw ex;
}
- using couchbase trail account