-
Notifications
You must be signed in to change notification settings - Fork 872
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
Regression: 1.1.1 fails to connect to AWS IOT over TLS; works with 1.1.0 #345
Comments
Could this be related to: aws/aws-iot-device-sdk-java#5 |
@jpwsutton I doubt it as the exception is different (my apologies: I added the exception details after you wrote your comment) and I do not need to disconnect/reconnect the network to generate the error - it happens whenever I try to connect using 1.1.1 (and has been reproduced in 3 environments - developer running on MacOs, developer on Windows and build server running linux). |
Same problem here, downgrading to version 1.1.0 solves it. Best regards. |
AWS IoT is still incompatible with Paho > 1.1.0, throwing |
Would it be possible with someone who has access to the AWS IoT service to copy and paste me a copy of a working example of their webockets header exchange please? It looks like the upgrade part of the exchange is incorrect, but without seeing it I can't fix anything... |
@Typhlosaurus, @beersheba, @sandyperez, If anyone could send me a copy of the headers returned from AWS that would be great, otherwise I will try and recreate this when I get the opportunity. |
@jpwsutton Following is snapshot of header returned by the AWS: Please let me know if you need anything else. |
Any updates on this? |
@jpwsutton @desokroshan I'm hitting this issue as well. Below are the request headers from both 1.1.0 as well as 1.2.1, where the latter gets the 403 response from AWS. Confidential details have been snipped, of course. 1.1.0 request headers:
1.2.1 request headers:
So, the differences from what I can see:
|
After modifying the latest develop branch to include the port number again, I made it past the Upgrade error but then entered a loop of connects/disconnects. (I'm using the AWS Java SDK: https://github.com/aws/aws-iot-device-sdk-java) |
Is there any update on this issue? Using 1.1.0 at this point is not helping anymore. Iot-device-stk is brought down to 1.0.1 Thanks |
@jpwsutton @icraggs Is there any update on this. AWS SDK for Android depends on paho and is unable to upgrade because of this error. This prevents us from using the bug fixes and features in the latest paho version. Can we have some idea of timeline for this? |
The latest release of the Paho Java client is 1.2.1. I presume this is still not working. Does the same error occur if the connection attempt is made outside of Android, in a 'plain' Java environment? If so, that will make it easier to find and fix. Can anyone supply a trace or other details of the protocol exchange? I'd hope not to have to create an AWS account to try this out. I could put some more debug info into the trace if necessary. |
When I replayed the same update HTTP request from Postman I got signature error. It looks like the signature calculation is incorrect. |
Ah sorry, I hadn't seen the update request above posted. |
Sorry I meant the HTTP upgrade request for websocket. That request fails with signature error and does not have the necessary response headers. |
@icraggs I have tried with the 1.2.1 and am still getting the same error. Only version it works with is 1.1.0. Please let me know if you need anything else. This is blocking quite a few of our customers from using AWS IoT, so we would really appreciate a speedy resolution. |
Thanks. I think the post from @EddieRingle could contain the key in the handshake: Sec-WebSocket-Protocol: mqttv3.1 We should hopefully be able to try it out. If anyone else can in the meantime, we could get a fix out quick. |
The problem is not with |
Ah yes, thanks. I've merged your fix, so we should be good to go in the next release. |
Thanks! When can we expect next release to go out? |
I'll get one out next week - now there are two significant fixes. By the way, once you were successfully connected, did things work as expected? |
Thanks that would be great!
Yes. I was able subscribe and publish messages successfully. |
1.2.2 release created. |
Version 1.1.2-SNAPSHOT (Develop Branch) (currently identical to 1.1.1)
MQTT newby here...
Using the amazon sdk to communicate with the AWS IoT server using MQTT over TLS in eu-west-1 has started to fails since 1.1.1 of paho.mqhtt.java was released. When attempting to connect a 403 is reported (actually reported as a "WebSocket Response header: Incorrect connection header" in org.eclipse.paho.client.mqttv3.internal.websocket.WebSocketHandshake due to the missing connection header rather than the status code).
Switching back to mqttv3 1.1.0 restores the ability to connect.
AWS SDK version:
com.amazonaws:aws-iot-device-sdk-java:1.1.0
I'm afraid someone else is going to have to help with any tracing details - if they're needed could someone tell me how to enable them.
If this is a known/suspected AWS IoT issue I'd be grateful for some information to pass on to them - I've assumed it is not due to 1.1.0 still working.
The text was updated successfully, but these errors were encountered: