Open cernej opened 8 years ago
import fastrpc rpc = fastrpc.ServerProxy("http://0:4111/RPC2",2000,2000,2000,1) res = rpc.call_method_which_resurts_binary_data()
with installed python-fastrpc version 5.0.9 it works fine and in res are responce with binary data:
{'filter': '\xff\xff\xff\xff\x00\x00\x00\x06'}
but with version 5.1.0 it ends up with exception
UnicodeDecodeError Traceback (most recent call last) UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte
my guess is that in 5.1.0 version may be binary data are interpreted as a string, that why UnicodeDecodeError occures
Hey, can't replicate this error. Could you please contact me with more info about the problem? I have a simple server implementation that returns the specified byte sequence and can get the result in python just fine.
with installed python-fastrpc version 5.0.9 it works fine and in res are responce with binary data:
but with version 5.1.0 it ends up with exception
my guess is that in 5.1.0 version may be binary data are interpreted as a string, that why UnicodeDecodeError occures