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

Error when scanning the QR code with the message HandshakeException: Handshake Error #136

Closed
mde2017 opened this issue Sep 2, 2024 · 4 comments

Comments

@mde2017
Copy link

mde2017 commented Sep 2, 2024

Error when scanning the QR code with the message HandshakeException: Handshake Error (see attached screenshot)

First assumption was: SSL certificate chain must be set up for ThingsBoard.
After consultation with our IT infrastructure, it would now be important to know how the app establishes the connection to ThingsBoard Web and what is required for the connection. ThingsBoard Web is located behind the firewall, which is unknown to the app; the proxy handles the allocation.
Data that the app tries to exchange is intercepted.

Can you tell how to overcome this issue?

error_message

@mde2017 mde2017 changed the title Error when scanning the QR code with the message HandshakeException: Handshake Erro Error when scanning the QR code with the message HandshakeException: Handshake Error Sep 2, 2024
@ybeshkarov
Copy link
Member

Hello @mde2017,

Something is wrong with the TB configuration, but not the mobile app itself. Could you add details on how to reproduce it? To which TB instance you're trying to log in?

@mde2017
Copy link
Author

mde2017 commented Sep 6, 2024

Hello @ybeshkarov,

thanks for your response.

I also do not assume that this is the issue with the mobile app. However, it would be good to know how the app communicates with ThingsBoard when establishing a connection and whether anything else needs to be enabled here, e.g. with regard to the firewall etc.

ThingsBoard is set up in a private data center and only the Web UI is enabled for external access. The network is rather restrictive.

@ybeshkarov
Copy link
Member

ybeshkarov commented Sep 13, 2024

Well, honestly the communication is pretty straightforward. It's just HTTP requests like GET, POST, etc. Nothing special happening there.

Not sure it will be useful for you but we using this package for it https://pub.dev/packages/dio.

For me, it looks like something is wrong with the SSL certificate you have on the TB instance you trying to log in. But it's just an assumption.

@mde2017

@ybeshkarov
Copy link
Member

Hello,

if you still have an issue I've added a solution there #164 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants