Skip to content

Intermittent Indefinite Hang in tb-rest-client Login Method #173

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

Open
AtaGunZ opened this issue Mar 12, 2025 · 0 comments
Open

Intermittent Indefinite Hang in tb-rest-client Login Method #173

AtaGunZ opened this issue Mar 12, 2025 · 0 comments

Comments

@AtaGunZ
Copy link

AtaGunZ commented Mar 12, 2025

We are experiencing an intermittent issue with the tb-rest-client (Version: 3.6.3) when used with ThingsBoard 3.6.3 Professional Edition. Approximately 1 in every 300–1000 login attempts results in the login call hanging indefinitely without throwing any exceptions. In these cases, the thread becomes blocked—observed to be stuck for 3+ hours—without any exception thrown or any indication of error in our logs.

This randomly happens ~once every few days, but I haven't previously investigated it further until now.

A py-spy stack dump (attached below) indicates that the thread is stuck during the SSL handshake phase of the login process.

Image

Environment:

ThingsBoard: 3.6.3 Professional Edition
tb-rest-client Version: 3.6.3

Please investigate this behavior and advise on a fix or a workaround. I have implemented a temporarily workaround by externally enforcing a timout myself, but it is an ugly solution.

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

1 participant