Ever since I switched to Monotouch 8.1 I've been getting an error when trying to access the App42 StorageService.
I know the monotouch api is 1-2 years old. Are there any plans to update it?
Here's my code for accessing the StorageService as well as the stack trace of the exception. One interesting thing is that even if I change the API Key or the Secret Key to something invalid, the same thing happens.
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
ServiceAPI sa = new ServiceAPI (ak, sk);
ss = sa.BuildStorageService ();
GetStorage ();
}
async void GetStorage()
{
try
{
s = await Task<Storage>.Run(() => ss.FindAllDocuments("DATA", Users"));
} catch (Exception e) {
Console.WriteLine (e.StackTrace);
}
}
Stack trace:
at Newtonsoft.Json.Linq.JObject.Load (Newtonsoft.Json.JsonReader reader) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Linq.JObject.Parse (System.String json) [0x00000] in <filename unknown>:0
at com.shephertz.app42.paas.sdk.csharp.connection.RESTConnector.ExecuteGet (System.String signature, System.String url, System.Collections.Generic.Dictionary`2 paramsDics) [0x00000] in <filename unknown>:0
at com.shephertz.app42.paas.sdk.csharp.storage.StorageService.FindAllDocuments (System.String dbName, System.String collectionName) [0x00000] in <filename unknown>:0
at tester.testerViewController.<GetStorage>m__0 () [0x00010] in /Users/taylorartunian/Projects/tester/tester/testerViewController.cs:47
at System.Threading.Tasks.TaskActionInvoker+FuncInvoke`1[com.shephertz.app42.paas.sdk.csharp.storage.Storage].Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/TaskActionInvoker.cs:242
at System.Threading.Tasks.Task.InnerInvoke () [0x00031] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:548
at System.Threading.Tasks.Task.ThreadStart () [0x000d0] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Threading.Tasks/Task.cs:438
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.ExceptionServices/ExceptionDispatchInfo.cs:62
at System.Runtime.CompilerServices.TaskAwaiter`1[com.shephertz.app42.paas.sdk.csharp.storage.Storage].GetResult () [0x00034] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.CompilerServices/TaskAwaiter_T.cs:59
at tester.testerViewController+<GetStorage>c__async0.MoveNext () [0x00091] in /Users/taylorartunian/Projects/tester/tester/testerViewController.cs:47