Xamarin Android AWS错误获取响应流(ReadDoneAsync2):ReceiveFailure

时间:2018-10-01 14:36:51

标签: xamarin.android aws-sdk

将Visual Studio更新到15.8.5,并且AWS库AWSSDK.Extensions.CognitoAuthentication停止工作并出现上述错误

Amazon.AWSConfigs.AWSRegion = AWSConfigConstants.Region;
var provider = new AmazonCognitoIdentityProviderClient(new AnonymousAWSCredentials(),                                                       FallbackRegionFactory.GetRegionEndpoint());
var userPool = new CognitoUserPool(AWSConfigConstants.PoolId, AWSConfigConstants.ClientId, provider);
var user = new CognitoUser(model.UserName, AWSConfigConstants.ClientId, userPool, provider);

authResponse = await user.StartWithSrpAuthAsync(new InitiateSrpAuthRequest()
                        {
                            Password = model.Password
                        }).ConfigureAwait(false);

1 个答案:

答案 0 :(得分:0)

这是与单声道更新有关的错误:https://github.com/aws/aws-sdk-net/issues/1068