简体   繁体   English

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

[英]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 .我已更改PoolIdEnd ServerPolicy 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.

相关问题 使用 ActionListener(回调)连接到 MQTT 服务器时出现错误异常 - Wrong Exception while connecting to MQTT server with an ActionListener (callback) 在隔离网络中将MQTT客户端连接到Android中的MQTT服务器时出现问题 - Trouble connecting MQTT client to MQTT server in Android in isolated network 在Android中使用Volley连接到实时服务器时出现500异常 - 500 exception while connecting to live server using Volley in android firebase,FirebaseError:连接到身份验证服务器时发生异常:主机未解析:auth.firebase.com - firebase,FirebaseError: There was an exception while connecting to the authentication server: Host is unresolved: auth.firebase.com Android Studio - MQTT 未连接 - Android Studio - MQTT not connecting MQTT Android无法连接到ActiveMq - MQTT Android not connecting to ActiveMq 连接到数据库时出现空指针异常 - Null Pointer Exception while connecting to database 将 android 应用程序与 web 服务连接时出现异常 - Exception while connecting android application with web service 在Android中连接互联网时获取异常 - Getting Exception while Connecting to Internet in android 连接到Google Play服务时出现异常null - exception while connecting to google play services null
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM