Hi,
While decoding the binary data encoded by protobuf-c, I am getting the
below error in python decoder. The decoding is successful if the encoded
values are hardcoded by integers And also decoding is successful when it is
done using protobuf-c. Any idea as to why this error shoots up in python
decoder?
File "/opt/nokia/SS_QRThirdPartySW/bin/decode_rnis_msg_p.py", line 23, in
est_decode
establish.MergeFromString(buff)
File
"/usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.py",
line 839, in MergeFromString
if self._InternalParse(serialized, 0, length) != length:
File
"/usr/lib/python2.7/site-packages/google/protobuf/internal/python_message.py",
line 872, in InternalParse
pos = field_decoder(buffer, new_pos, end, self, field_dict)
File
"/usr/lib/python2.7/site-packages/google/protobuf/internal/decoder.py",
line 631, in DecodeRepeatedField
raise _DecodeError('Truncated message.')
google.protobuf.message.DecodeError: Truncated message.
Regards,
Wahid
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.