【问题标题】:Exception while connecting AWS server for MQTT为 MQTT 连接 AWS 服务器时出现异常
【发布时间】:2017-06-17 19:42:09
【问题描述】:

我试图从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)

【问题讨论】:

  • 一个问题,一个问题,一旦问题得到回答,就不会实质性地改变问题,因为这会使它们对其他人无用

标签: android amazon-web-services mqtt aws-sdk


【解决方案1】:

您需要转到 Cognito console 并创建一个 Cognito 身份池并将 us-west-2_something 替换为类似于 us-west-2:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 的实际身份池 ID

【讨论】:

    猜你喜欢
    • 2014-12-18
    • 1970-01-01
    • 2023-03-23
    • 1970-01-01
    • 1970-01-01
    • 2015-03-19
    • 2018-05-11
    • 1970-01-01
    • 2022-07-29
    相关资源
    最近更新 更多