Unexpected end-group tag.
Package:
protobuf
50437

Exception Class:
message_mod.DecodeError
Raise code
def MergeFromString(self, serialized):
serialized = memoryview(serialized)
length = len(serialized)
try:
if self._InternalParse(serialized, 0, length) != length:
# The only reason _InternalParse would return early is if it
# encountered an end-group tag.
raise message_mod.DecodeError('Unexpected end-group tag.')
except (IndexError, TypeError):
# Now ord(buf[p:p+1]) == ord('') gets TypeError.
raise message_mod.DecodeError('Truncated message.')
except struct.error as e:
raise message_mod.DecodeError(e)
return length # Return this for legacy reasons.
cls.MergeFromString = MergeFromString
Comment explaining raise
The only reason _InternalParse would return early is if it encountered an end-group tag.
Links to the raise (1)
https://github.com/protocolbuffers/protobuf/blob/96ccf402fe8e62649f2be48a05944d552701aa5f/python/google/protobuf/internal/python_message.py#L1142NO FIXES YET
Just press the button and we will add solution
to this exception as soon as possible
* As many users press the button, the faster we create a fix
Add a possible fix
Please authorize to post fix