seznam / fastrpc

FastRPC library
http://seznam.github.io/frpc
GNU Lesser General Public License v2.1
46 stars 46 forks source link

python-fastrpc 5.1.0 failed to precess binary data #23

Open cernej opened 8 years ago

cernej commented 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

volca02 commented 8 years ago

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.