# Calling ttn-lw-cli from python hangs forever

**URL:** <https://www.thethingsnetwork.org/forum/t/calling-ttn-lw-cli-from-python-hangs-forever/54773>\
**Category:** The Things Stack v3\
**Created:** [January 25, 2022, 10:36am UTC](https://www.thethingsnetwork.org/forum/t/calling-ttn-lw-cli-from-python-hangs-forever/54773 "2022-01-25T10:36:20Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![hphillip](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/hphillip/32/46261_2.png) [@hphillip](https://www.thethingsnetwork.org/forum/u/hphillip)\
**Post date:** [June 12, 2022, 9:50pm UTC](https://www.thethingsnetwork.org/forum/t/calling-ttn-lw-cli-from-python-hangs-forever/54773/3 "2022-06-12T21:50:39Z")

</div>

Hi @jpmeijers just FYI, I came across something similar (i.e., the cli hanging and needing a kill)

> [@Ttn-lw-cli applications subscribe HANG](https://www.thethingsnetwork.org/forum/t/ttn-lw-cli-applications-subscribe-hang/57473):
>
> When I execute ttn-lw-cli events --gateway\_id [whatever] the cli will (as expected) run until the access token expires and return. When I’m not authenicated I can just do ttn-lw-cli login to get a new access token. That all works fine smiley However, when I execute ttn-lw-cli applications subscribe --application-id [whatever] the cli (unexpectedly) will not return after the access token has expired frowning The symptom I see is that I get the desired application output data while the …

Issue has been raised on github.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/calling-ttn-lw-cli-from-python-hangs-forever/54773)._
