One of our rpc call fails and success in a sequence

From @gitricko on Thu May 31 2018 18:33:20 GMT+0000 (UTC)

Hi,

Just a trying to crowdsource a possible solution or why a particular error occur. We have a few services that implement a rpc method called heartbeat. Only one particular service has this error (see below) it success and fail and repeat in this pattern.

We check our coding and there is nothing specially between this service with others. Our fix was to create rabbitmq instance again (in cloudfoundry backing service)

>>> n.rpc.etc.heartbeat()
True
>>> n.rpc.etc.heartbeat()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/vcap/deps/0/conda/envs/dep_env/lib/python3.6/site-packages/nameko/rpc.py", line 374, in __call__
    return reply.result()
  File "/home/vcap/deps/0/conda/envs/dep_env/lib/python3.6/site-packages/nameko/rpc.py", line 332, in result
    raise deserialize(error)
nameko.exceptions.MethodNotFound: heartbeat
>>> n.rpc.etc.heartbeat()
True
>>> n.rpc.etc.heartbeat()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/vcap/deps/0/conda/envs/dep_env/lib/python3.6/site-packages/nameko/rpc.py", line 374, in __call__
    return reply.result()
  File "/home/vcap/deps/0/conda/envs/dep_env/lib/python3.6/site-packages/nameko/rpc.py", line 332, in result
    raise deserialize(error)
nameko.exceptions.MethodNotFound: heartbeat


```<br /><br /><i>Copied from original issue: https://github.com/nameko/nameko/issues/548</i>

From @davidszotten on Thu May 31 2018 22:08:18 GMT+0000 (UTC)

hi,

it looks like you might have two service instances with the same name running, one with that method and one without it.

for future reference, the forum is usually a better place for questions like this.