Unable to unpack blobValues which contain bytes
Closed this issue · 0 comments
joente commented
The fix to download blobValues (bytes) is not totally correct, see error below:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "some.py", line 123, in func
values, cursor = await _gcd.get_entities_by_kind(
File "/usr/local/lib/python3.8/site-packages/aiogcd/connector/connector.py", line 333, in get_entities_by_kind
return await self._get_entities_cursor(data)
File "/usr/local/lib/python3.8/site-packages/aiogcd/connector/connector.py", line 280, in _get_entities_cursor
return [Entity(result['entity']) for result in results], cursor
File "/usr/local/lib/python3.8/site-packages/aiogcd/connector/connector.py", line 280, in <listcomp>
return [Entity(result['entity']) for result in results], cursor
File "/usr/local/lib/python3.8/site-packages/aiogcd/connector/entity.py", line 44, in __init__
setattr(self, prop, value_from_dict(val))
File "/usr/local/lib/python3.8/site-packages/aiogcd/connector/utils.py", line 81, in value_from_dict
(val + pad).replace(b'-', b'+').replace(b'_', b'/'))
TypeError: can only concatenate str (not "bytes") to str