on-internet
← Community

Protobuf RuntimeWarning: Unexpected end-group tag Not all data was converted

Stack Overflow ·

I have this utf-8 encoded file from which I need to collect the hexadecimal dump which is protobuf viable and then feed it to the protobuf. The .proto file works as expected and life is almost perfect. message_content = message_content.replace(" ","") message_content = binascii.unhexlify(message_content) I convert the string to raw bytes and then feed it to the protobuf: msg.ParseFromString(message_content) which results in the following error: RuntimeWarning: Unexpected end-group tag: Not all data was converted msg.ParseFromString(message_content) I can't tell if I'm collecting the hex part p

Comments

Sign in or sign up to comment and upvote.

No comments yet.