thriftpy2 icon indicating copy to clipboard operation
thriftpy2 copied to clipboard

0.4.14 has a problem about MergeFromString(rst.response_data)

Open bjmajic opened this issue 4 years ago • 3 comments

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

bjmajic avatar Jan 30 '21 16:01 bjmajic

the same code in 0.4.13 is normal

bjmajic avatar Jan 31 '21 02:01 bjmajic

how to reproduce it?

ethe avatar Feb 01 '21 13:02 ethe

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

bjmajic avatar Feb 05 '21 02:02 bjmajic