[英]Exception while connecting AWS server for MQTT
I have tried to run example from https://github.com/awslabs/aws-sdk-android-samples/blob/master/AndroidPubSub/README.md .我试图从https://github.com/awslabs/aws-sdk-android-samples/blob/master/AndroidPubSub/README.md运行示例。 I have changed PoolId
, End Server
and Policy Name
.我已更改PoolId
、 End Server
和Policy Name
。 I am getting following exception.我收到以下异常。
Exception occurred when generating new private key and certificate. com.amazonaws.AmazonServiceException: 1 validation error detected: Value 'us-west-2_something' at 'identityPoolId' failed to satisfy constraint: Member must satisfy regular expression pattern: [\\w-]+:[0-9a-f-]+ (Service: AmazonCognitoIdentity; Status Code: 400; Error Code: ValidationException; Request ID: f7c3924a-e847-11e6-8508-ab41b4890740)
您需要转到 Cognito 控制台并创建一个 Cognito 身份池并将us-west-2_something
替换为实际身份池 ID,如下所示us-west-2:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.