Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-fastrpc 5.1.0 failed to precess binary data #23

Open
cernej opened this issue Apr 26, 2016 · 1 comment
Open

python-fastrpc 5.1.0 failed to precess binary data #23

cernej opened this issue Apr 26, 2016 · 1 comment

Comments

@cernej
Copy link

cernej commented Apr 26, 2016

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
Copy link
Contributor

volca02 commented May 26, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants