amazon-archives / aws-sdk-xamarin

AWS Mobile SDK for Xamarin (Beta)
Apache License 2.0
45 stars 18 forks source link

Cognito Sync Not Working when offline #31

Closed jasonmc86 closed 9 years ago

jasonmc86 commented 9 years ago

Hey,

Isn't Cognito sync supposed to be able to work if the user is offline?

Say i've logged in recently (so the data should be local database) why does it try to do a GetId and fail?

CognitoIdentity.Model.GetIdResponse

[MonoDroid] UNHANDLED EXCEPTION: [MonoDroid] System.AggregateException: AsyncHelpers.Run method threw an exception. ---> Amazon.Runtime.AmazonServiceException: A WebException with status ConnectFailure was thrown. ---> System.Net.WebException: Error: ConnectFailure (Network is unreachable) ---> System.Net.Sockets.SocketException: Network is unreachable [MonoDroid] at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x000f7] in :0 [MonoDroid] at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request) [0x0019b] in :0 [MonoDroid] --- End of inner exception stack trace --- [MonoDroid] at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00043] in :0 [MonoDroid] at System.Threading.Tasks.TaskFactory1[System.IO.Stream].FromAsyncCoreLogic (IAsyncResult iar, System.Func2 endFunction, System.Action1 endAction, System.Threading.Tasks.Task1 promise, Boolean requiresSynchronization) [0x00014] in :0 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[System.IO.Stream].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at System.Net.Http.HttpClientHandler+<SendAsync>c__async0.MoveNext () [0x002e3] in <filename unknown>:0 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in :0 [MonoDroid] at System.Net.Http.HttpClient+casync0.MoveNext () [0x000f3] in :0 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.HttpWebRequestMessage+d0.MoveNext () [0x00035] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\HttpHandler\HttpRequestMessageFactory.cs:216 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.Runtime.Internal.Transform.IWebResponseData].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.HttpHandler1+d01[System.Net.Http.HttpContent,Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x0028f] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\HttpHandler\HttpHandler.cs:159 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.Unmarshaller+d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x0001e] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\Unmarshaller.cs:67 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.ErrorHandler+d11[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00035] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\ErrorHandler\ErrorHandler.cs:97 [MonoDroid] --- End of inner exception stack trace --- [MonoDroid] at Amazon.Runtime.Internal.WebExceptionHandler.HandleException (IExecutionContext executionContext, System.Net.WebException exception) [0x00067] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\ErrorHandler\WebExceptionHandler.cs:44 [MonoDroid] at Amazon.Runtime.Internal.ExceptionHandler1[System.Net.WebException].Handle (IExecutionContext executionContext, System.Exception exception) [0x00001] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\ErrorHandler\ExceptionHandler.cs:38 [MonoDroid] at Amazon.Runtime.Internal.ErrorHandler.ProcessException (IExecutionContext executionContext, System.Exception exception) [0x0006d] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\ErrorHandler\ErrorHandler.cs:202 [MonoDroid] at Amazon.Runtime.Internal.ErrorHandler+d11[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x000cc] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\ErrorHandler\ErrorHandler.cs:102 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.CallbackHandler+d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00030] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\CallbackHandler.cs:61 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.CredentialsRetriever+d01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00164] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\CredentialsRetriever.cs:98 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.RetryHandler+d01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x0005f] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\RetryHandler\RetryHandler.cs:121 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.CallbackHandler+d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00030] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\CallbackHandler.cs:61 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.CallbackHandler+d01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00030] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\CallbackHandler.cs:61 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.ErrorCallbackHandler+d01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00035] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\ErrorCallbackHandler.cs:53 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.MetricsHandler+d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00066] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\MetricsHandler.cs:65 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter1[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.Util.AsyncHelpers+<>cDisplayClass71+<<RunSync>b__6>d__9[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00041] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Internal\Util\AsyncHelpers.cs:66 [MonoDroid] --- End of inner exception stack trace --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <IL 0x00011, 0x00078> [MonoDroid] at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>m__0 (object) <IL 0x00006, 0x0006b> [MonoDroid] at Android.App.SyncContext/<Post>c__AnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/1780/3518c4ce/source/monodroid/src/Mono.Android/src/Android.App/SyncContext.cs:18 [MonoDroid] at Java.Lang.Thread/RunnableImplementor.Run () [0x0000b] in /Users/builder/data/lanes/1780/3518c4ce/source/monodroid/src/Mono.Android/src/Java.Lang/Thread.cs:36 [MonoDroid] at Java.Lang.IRunnableInvoker.n_Run (intptr,intptr) [0x00009] in /Users/builder/data/lanes/1780/3518c4ce/source/monodroid/src/Mono.Android/platforms/android-15/src/generated/Java.Lang.IRunnable.cs:71 [MonoDroid] at (wrapper dynamic-method) object.9203e50f-e6cb-4200-89ee-fc2901b5acca (intptr,intptr) <IL 0x00011, 0x0004b> [MonoDroid] ---> (Inner Exception #0) Amazon.Runtime.AmazonServiceException: A WebException with status ConnectFailure was thrown. ---> System.Net.WebException: Error: ConnectFailure (Network is unreachable) ---> System.Net.Sockets.SocketException: Network is unreachable [MonoDroid] at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x000f7] in <filename unknown>:0 [MonoDroid] at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request) [0x0019b] in <filename unknown>:0 [MonoDroid] --- End of inner exception stack trace --- [MonoDroid] at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) [0x00043] in <filename unknown>:0 [MonoDroid] at System.Threading.Tasks.TaskFactory1[System.IO.Stream].FromAsyncCoreLogic (IAsyncResult iar, System.Func2 endFunction, System.Action1 endAction, System.Threading.Tasks.Task1 promise, Boolean requiresSynchronization) [0x00014] in <filename unknown>:0 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[System.IO.Stream].GetResult () [0x00000] in :0 [MonoDroid] at System.Net.Http.HttpClientHandler+casync0.MoveNext () [0x002e3] in :0 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in :0 [MonoDroid] at System.Net.Http.HttpClient+casync0.MoveNext () [0x000f3] in :0 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[System.Net.Http.HttpResponseMessage].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.HttpWebRequestMessage+<GetResponseAsync>d__0.MoveNext () [0x00035] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\HttpHandler\HttpRequestMessageFactory.cs:216 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <filename unknown>:0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.Runtime.Internal.Transform.IWebResponseData].GetResult () [0x00000] in :0 [MonoDroid] at Amazon.Runtime.Internal.HttpHandler1+<InvokeAsync>d__01[System.Net.Http.HttpContent,Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x0028f] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\HttpHandler\HttpHandler.cs:159 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.Unmarshaller+<InvokeAsync>d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x0001e] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\Unmarshaller.cs:67 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.ErrorHandler+<InvokeAsync>d__11[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00035] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\ErrorHandler\ErrorHandler.cs:97 [MonoDroid] --- End of inner exception stack trace --- [MonoDroid] at Amazon.Runtime.Internal.WebExceptionHandler.HandleException (IExecutionContext executionContext, System.Net.WebException exception) [0x00067] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\ErrorHandler\WebExceptionHandler.cs:44 [MonoDroid] at Amazon.Runtime.Internal.ExceptionHandler1[System.Net.WebException].Handle (IExecutionContext executionContext, System.Exception exception) [0x00001] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\ErrorHandler\ExceptionHandler.cs:38 [MonoDroid] at Amazon.Runtime.Internal.ErrorHandler.ProcessException (IExecutionContext executionContext, System.Exception exception) [0x0006d] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\ErrorHandler\ErrorHandler.cs:202 [MonoDroid] at Amazon.Runtime.Internal.ErrorHandler+<InvokeAsync>d__11[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x000cc] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\ErrorHandler\ErrorHandler.cs:102 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.CallbackHandler+<InvokeAsync>d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00030] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\CallbackHandler.cs:61 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.CredentialsRetriever+<InvokeAsync>d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00164] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\CredentialsRetriever.cs:98 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.RetryHandler+<InvokeAsync>d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x0005f] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\RetryHandler\RetryHandler.cs:121 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.CallbackHandler+<InvokeAsync>d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00030] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\CallbackHandler.cs:61 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.CallbackHandler+<InvokeAsync>d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00030] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\CallbackHandler.cs:61 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.ErrorCallbackHandler+<InvokeAsync>d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00035] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\ErrorCallbackHandler.cs:53 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.MetricsHandler+<InvokeAsync>d__01[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00066] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Pipeline\Handlers\MetricsHandler.cs:65 [MonoDroid] --- End of stack trace from previous location where exception was thrown --- [MonoDroid] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in :0 [MonoDroid] at System.Runtime.CompilerServices.TaskAwaiter1[Amazon.CognitoIdentity.Model.GetIdResponse].GetResult () [0x00000] in <filename unknown>:0 [MonoDroid] at Amazon.Runtime.Internal.Util.AsyncHelpers+<>c__DisplayClass71+<b6>d9[Amazon.CognitoIdentity.Model.GetIdResponse].MoveNext () [0x00041] in c:\Users\JASONMC\Downloads\aws-sdk-xamarin-master\aws-sdk-xamarin-master\AWS.XamarinSDK\AWSSDK_Android\Amazon.Runtime\Internal\Util\AsyncHelpers.cs:66 <---

Cheers,

Jason

tawalke commented 9 years ago

Hi:

This Beta SDK should now be migrated to use the AWS SDK for .NET with Xamarin has been released. As noted, this release is under AWS SDK for .NET and is in Developer Preview. The Xamarin SDK repo has the latest links for this update, as well as, the updates for the updated NuGet packages.

This should resolve you issue as this has the updated services and codebase desired. See links below: https://github.com/aws/aws-sdk-net https://github.com/aws/aws-sdk-net#nuget-packages