Protocol message end-group tag did not match expected tag

前端 未结 1 1851
后悔当初
后悔当初 2021-02-05 07:01

I keep getting the following stack trace and am not sure what it means.

Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message end-grou         


        
相关标签:
1条回答
  • 2021-02-05 07:35

    Groups in protobuf are written as a start/end numeric pair - kinda like how <foo> needs a </foo>, but in a different format. Essentially it is complaining that it found a </bar> instead (just: the xml is only a metaphor). The details are in the encoding specification, but the long and short is that one of:

    • the data is inherently corrupt (either by damage of by a faulty encoder), or
    • the data is becoming corrupt while reading, or
    • the data is fine and you gave a faulty decoder

    If I had to guess, the data has been damaged in transit - because that is so frighteningly common

    0 讨论(0)
提交回复
热议问题