igorcoding / asynctnt

A fast Tarantool Database connector for Python/asyncio.

Home Page:https://igorcoding.github.io/asynctnt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decode error on binary data with MP_STR format

LinnikD opened this issue · comments

Got this error on .call() method, when try to resive binary data from tuple:

  File "asynctnt/iproto/response.pyx", line 315, in asynctnt.iproto.protocol.response_parse_body (asynctnt/iproto/protocol.c:14639)
  File "asynctnt/iproto/response.pyx", line 232, in asynctnt.iproto.protocol._response_parse_body_data (asynctnt/iproto/protocol.c:13857)
  File "asynctnt/iproto/response.pyx", line 144, in asynctnt.iproto.protocol._decode_obj (asynctnt/iproto/protocol.c:12876)
  File "asynctnt/iproto/response.pyx", line 128, in asynctnt.iproto.protocol._decode_obj (asynctnt/iproto/protocol.c:12656)
  File "asynctnt/iproto/unicode.pyx", line 17, in asynctnt.iproto.protocol.decode_string (asynctnt/iproto/protocol.c:3014)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 0: invalid continuation byte

Need to return binary data when it is not a unicode string