I'm having the following error when running the minimal example, seems like an issue with client side code, as I atleast can telnet from localhost to port 5000 when server code is running.
Traceback (most recent call last):
File "/home/joao/rpc-python/venv/lib/python3.6/site-packages/tinyrpc/protocols/jsonrpc.py", line 606, in parse_reply
rep = json.loads(data)
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "client.py", line 12, in <module>
result = remote_server.reverse_string('Hello, World!')
File "/home/joao/rpc-python/venv/lib/python3.6/site-packages/tinyrpc/client.py", line 178, in <lambda>
self.prefix + name, args, kwargs, one_way=self.one_way
File "/home/joao/rpc-python/venv/lib/python3.6/site-packages/tinyrpc/client.py", line 89, in call
rep = self._send_and_handle_reply(req, one_way)
File "/home/joao/rpc-python/venv/lib/python3.6/site-packages/tinyrpc/client.py", line 59, in _send_and_handle_reply
response = self.protocol.parse_reply(reply)
File "/home/joao/rpc-python/venv/lib/python3.6/site-packages/tinyrpc/protocols/jsonrpc.py", line 608, in parse_reply
raise InvalidReplyError(e)
tinyrpc.exc.InvalidReplyError: Expecting value: line 1 column 1 (char 0)
Can you help me fix this problem? I have no idea what i'm doing wrong, just installed the necessary packages with pip install tinyrpc[...]
Thank you in advance, Cheers!
Hello,
I'm having the following error when running the minimal example, seems like an issue with client side code, as I atleast can telnet from localhost to port 5000 when server code is running.
Can you help me fix this problem? I have no idea what i'm doing wrong, just installed the necessary packages with pip install tinyrpc[...] Thank you in advance, Cheers!