Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription Exception after being connected #3030

Closed
fxsweety opened this issue Oct 3, 2022 · 3 comments
Closed

Subscription Exception after being connected #3030

fxsweety opened this issue Oct 3, 2022 · 3 comments
Assignees
Labels
bug Something isn't working closing soon Issue will auto-close if there is no additional activity within 7 days. iot Issues with the AWS Android SDK for Internet of Things (IoT) pending-community-response Issue is pending response from the issue requestor

Comments

@fxsweety
Copy link

fxsweety commented Oct 3, 2022

Describe the bug
A clear and concise description of what the bug is.
We are noticing a lot of this exception from the logs gathered from customer
We are using custom authorization to conect to MQTT
com.amazonaws.AmazonClientException: Client error when subscribing.
Caused by: Client is not connected (32104)
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(SourceFile:31)
at org.eclipse.paho.client.mqttv3.internal.ClientComms.sendNoWait(SourceFile:205)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.subscribeBase(SourceFile:1088)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.subscribe(SourceFile:1061)
at org.eclipse.paho.client.mqttv3.MqttAsyncClient.subscribe(SourceFile:1027)
at com.amazonaws.mobileconnectors.iot.AWSIotMqttManager.subscribeToTopic(SourceFile:1495)
... 15 more

To Reproduce
A code sample or steps:
We don't a way to reproduce this issue
But this happens after we received Connected
Logs flow of events:
Connecting
Connected
Subscription Exception
EOFException

Connection lost (32109) - java.io.EOFException at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(SourceFile:197) at java.lang.Thread.run(Thread.java:923) Caused by: java.io.EOFException at java.io.DataInputStream.readByte(DataInputStream.java:270) at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(SourceFile:92) at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(SourceFile:137) ... 1 more

Reconnecting
Connected
Subscription Exception
java.io.EOFException
....

Environment Information (please complete the following information):

  • AWS Android SDK Version: "com.amazonaws:aws-android-sdk-iot:2.22.2"
@banji180 banji180 added bug Something isn't working iot Issues with the AWS Android SDK for Internet of Things (IoT) labels Oct 10, 2022
@eeatonaws
Copy link
Contributor

@fxsweety thank you for reporting this issue. Could you please provide a code sample showing how you use the AWSIotMqttManager to connect and subscribe? This will help us in reproducing the issue.

@eeatonaws eeatonaws added the pending-community-response Issue is pending response from the issue requestor label Oct 14, 2022
@eeatonaws eeatonaws self-assigned this Oct 18, 2022
@eeatonaws eeatonaws added the closing soon Issue will auto-close if there is no additional activity within 7 days. label Nov 3, 2022
@eeatonaws
Copy link
Contributor

Closing due to inactivity. Please create a new issue or reopen this issue with the requested information if the issue persists.

@ShubhAppentus
Copy link

ShubhAppentus commented Oct 30, 2023

hi @fxsweety did you found any solution for this issue. currently i am facing the same issue, after i connected to aws iot, the logs showing reconnecting and connected again and again within few minutes, its not stable after i connected successfully. can you please halp me out thorugh this issue.
@eeatonaws

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working closing soon Issue will auto-close if there is no additional activity within 7 days. iot Issues with the AWS Android SDK for Internet of Things (IoT) pending-community-response Issue is pending response from the issue requestor
Projects
None yet
Development

No branches or pull requests

4 participants