Thriftpy / thriftpy2

Pure python approach of Apache Thrift.
MIT License
572 stars 91 forks source link

0.4.14 has a problem about MergeFromString(rst.response_data) #161

Open bjmajic opened 3 years ago

bjmajic commented 3 years ago

res.MergeFromString(rst.response_data) 206 TypeError: a bytes-like object is required, not 'str'

bjmajic commented 3 years ago

the same code in 0.4.13 is normal

ethe commented 3 years ago

how to reproduce it?

bjmajic commented 3 years ago

how to reproduce it i use tf serving , when i send a image (batch=1), the rst.response_data type is 'str', but when i send images (batch >1), he rst.response_data type is 'bytes'. MergeFromString not conver the twe case