# Nameko shell hangs on rpc call

**URL:** <https://discourse.nameko.io/t/nameko-shell-hangs-on-rpc-call/774>\
**Category:** Uncategorized\
**Created:** [October 3, 2022, 4:57pm UTC](https://discourse.nameko.io/t/nameko-shell-hangs-on-rpc-call/774 "2022-10-03T16:57:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alf](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@alf](https://discourse.nameko.io/u/alf)\
**Post date:** [October 3, 2022, 4:57pm UTC](https://discourse.nameko.io/t/nameko-shell-hangs-on-rpc-call/774/1 "2022-10-03T16:57:57Z")

</div>

Initially the nameko shell is able to communicate with the nameko service. The service is a simple hello world:

```auto
class GreetingService:
    name = 'greeting'
    @rpc
    def hello(self):
        return f"{datetime.today()}: hi"

```

Within the shell, I can call hello in a loop without problems. If I wait 5 minutes or more to call hello then the shell hangs indefinitely.

```auto
helo=n.rpc.greeting.hello
>>> helo()
'2022-10-03 12:40:12.628285: Hello, alarm device count=936'
>>> helo()
***hangs here***

```

The second helo will be stuck and impervious to keyboard interrupt. I have to kill the shell process.  
Do you have any ideas why this is occurring?  
Or do you have any suggestions for troubleshooting?

Environment:  
nameko - 2.14.1  
Windows 10  
python3.9.5

---

<div class="post-metadata">

**Author:** ![pony](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/pony/32/100_2.png) [@pony](https://discourse.nameko.io/u/pony)\
**Post date:** [October 25, 2022, 1:01pm UTC](https://discourse.nameko.io/t/nameko-shell-hangs-on-rpc-call/774/2 "2022-10-25T13:01:41Z")

</div>

My guess is that the MQ connection may have been broken
