-
Notifications
You must be signed in to change notification settings - Fork 235
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
Java Service SDK - Cloud 2 Device client hanging and doesn't throw any error when the connection string is incorrect #11
Comments
From @enuysa-msft on November 10, 2016 16:3 Hi @dluc I have tested your code by changing connection string and a deviceID |
From @enuysa-msft on November 14, 2016 9:19 Closing. Please re-activate if you still are having issues. Thanks ! @tameraw Could you please close this? |
From @dluc on November 17, 2016 19:7 hi @enuysa-msft with a correct connection string and device ID the sample works. The issue I reported is different though:
The SDK should report an error to the user, something like "authentication failed". |
From @dluc on November 17, 2016 19:9 I think the issue should be addressed, could you reopen it? |
From @cwrenniks on November 17, 2016 20:22 This should definitely be re-opened, as the issue is about incorrect connection string and the lack of messaging around it. |
From @enuysa-msft on November 18, 2016 9:21 Hi @dluc, Sorry for misunderstanding, You are right it is not showing an error to the user, something like "authentication failed". I will working on it now. |
Fix for Cloud 2 Device client hanging and doesn't throw any error when the connection string is incorrect on Developer branch Azure#11 (comment)
Fix for Cloud 2 Device client hanging and doesn't throw any error when the connection string is incorrect on Developer branch Azure#11 (comment)
Fix for Cloud 2 Device client hanging and doesn't throw any error when the connection string is incorrect Azure#11
Fix for Cloud 2 Device client hanging and doesn't throw any error when the connection string is incorrect #11
From @dluc on November 9, 2016 20:48
code: https://gist.github.com/dluc/adb431f0cfd67e55e4bf6dbd30e039ae
Note: the code is a copy of the sample code from the SDK, with a fake connection string and a fake deviceID for the purpose of the test.
The code as is doesn't throw any error and the client seems to hang forever.
It's not possible to understand if a message is delivered.
Output:
Using
com.microsoft.azure.iothub-java-client
:iothub-java-service-client
:1.0.10
Copied from original issue: Azure/azure-iot-sdks#938
The text was updated successfully, but these errors were encountered: