-
Notifications
You must be signed in to change notification settings - Fork 549
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
MqttException (0) - java.io.IOException: WebSocket Response header: Invalid response from Server, It may not support WebSockets. #3646
Comments
Hi @kushagrakumar27. For IoT we strongly recommend you switch to the AWS IoT Device SDK for Java v2 - that library is very actively maintained and you will be able to get better support there. They have documentation about using that library on Android. In terms of this specific exception, it's coming from the underlying Paho Client. There's not a lot of visibility into what is going wrong, but it seems that this error can result from issues authenticating the connection. |
Hi @mattcreaser. Thanks for the library suggestion. |
Hi @kushagrakumar27. I have pretty limited knowledge of this library, but I believe the answer is "both", but in your case it would probably only be websocket. Looking at the source code, when connecting with a When connecting via a custom authorizer it looks like it uses secure websockets. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Language:
Kotlin
Gradle dependencies:
Description:
I am using Custom authorizer to establish connection to MQTT broker (configured on AWS IoT domain). The domain is configured as follows:
I have attached the
MQTT_log_exception
file which contains theIOException
that I am getting.MQTT_log_exception.txt
The text was updated successfully, but these errors were encountered: