Xamarin iOS SDK QueryFeaturesAsync JSON Exception

Discussion created by jason.vandermeer on Jul 2, 2017
Latest reply on Jul 3, 2017 by jason.vandermeer

I am hitting an exception when trying to execute the "QueryFeaturesAsync" with a query parameter of Polygon Geometry. 


SDK Version: 100.1

Exception: "\"invalid start of json - expecting { or [\": < : 0"


I have tried the query with multiple different URI's and still hitting the same exception. When executing the query direct from the service (not through the SDK), I get a successful response with the data I expect.


Here is some of the code:


var featureTable = new ServiceFeatureTable(uri);

var queryParams = new QueryParameters();

queryParams.Geometry = geometry;

task = featureTable.QueryFeaturesAsync(queryParams);


try {

   await task;


catch(Exception ex)


   //expection occurs here

   Console.WriteLine("Failed to complete query" + e.ToString());