繁体   English   中英

为 MQTT 连接 AWS 服务器时出现异常

[英]Exception while connecting AWS server for MQTT

我试图从https://github.com/awslabs/aws-sdk-android-samples/blob/master/AndroidPubSub/README.md运行示例。 我已更改PoolIdEnd ServerPolicy Name 我收到以下异常。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM