IoTReady / flutter-aws-iot

AWS IoT plugin for flutter, intended to fit nicely with flutter_cognito_plugin
Other
11 stars 2 forks source link

The broker is not responding to the connection request message (Missing Connection Acknowledgement #1

Open ramzaat opened 4 years ago

ramzaat commented 4 years ago

I have the awsconfiguration.json set up properly, I use the cognito plugin to create an account as well as verify it, and I have attached a policy that gives connect on resource "*", but when i try to connect i get: I/flutter (18127): 2020-02-19 17:02:49.537331 -- SynchronousMqttConnectionHandler::internalConnect - pre sleep, state = Connection status is connecting with return code noneSpecified for the connection attempts, and my message in the cloudwatch logs is { "timestamp": "2020-02-18 19:09:29.632", "logLevel": "ERROR", "traceId": "bed5fbca-eae3-3523-aa08-aa0f02119b1c", "accountId": "154922551630", "status": "Failure", "eventType": "Connect", "protocol": "MQTT", "clientId": "xxxxxxxxxxxxxxxxxxxxxxxxxx", "principalId": "AROASIEQ2RFHMAKJFY3CX:CognitoIdentityCredentials", "sourceIp": "xx.xx.xxx.xxx", "sourcePort": 49430, "reason": "AUTHORIZATION_FAILURE", "details": "Authorization Failure" }

part of the setup process for cognito involved not including a secret key in the group pool creation, though I doubt that would be the issue because the cognito account is connecting and working without issue. Is there something I'm doing wrong or missing on my end?

tejpochiraju commented 4 years ago

@devxpy @KaranRajPradhan is this broken?