Describe the bug
I just update to Amplify V2 from V1 and update the MQTT library to latest but after doing that all successfully i am unable to connect to MQTT, getting an exception while connecting to MQTT
Reconnect failed
MqttException (0) - java.io.IOException: WebSocket Response header: Incorrect upgrade.
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:38)
at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:738)
at java.lang.Thread.run(Thread.java:923)
Caused by: java.io.IOException: WebSocket Response header: Incorrect upgrade.
at org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketHandshake.receiveHandshakeResponse(WebSocketHandshake.java:162)
at org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketHandshake.execute(WebSocketHandshake.java:80)
at org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketSecureNetworkModule.start(WebSocketSecureNetworkModule.java:65)
at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:724)
at java.lang.Thread.run(Thread.java:923)
To Reproduce
Simply update to latest Amplify library from V1, means to V2
Describe the bug I just update to Amplify V2 from V1 and update the MQTT library to latest but after doing that all successfully i am unable to connect to MQTT, getting an exception while connecting to MQTT
Reconnect failed MqttException (0) - java.io.IOException: WebSocket Response header: Incorrect upgrade. at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:38) at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:738) at java.lang.Thread.run(Thread.java:923) Caused by: java.io.IOException: WebSocket Response header: Incorrect upgrade. at org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketHandshake.receiveHandshakeResponse(WebSocketHandshake.java:162) at org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketHandshake.execute(WebSocketHandshake.java:80) at org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketSecureNetworkModule.start(WebSocketSecureNetworkModule.java:65) at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:724) at java.lang.Thread.run(Thread.java:923)
To Reproduce Simply update to latest Amplify library from V1, means to V2
Your code I use the MyCredentialProvider provided in https://github.com/aws-amplify/amplify-android/issues/2400 bug while connecting to MQTT in connect call
Which AWS service(s) are affected?
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Environment Information (please complete the following information):
Following are the libraries in which i am facing the issue
Previously used libraries in which every thing works well