com.google.protobuf.InvalidProtocolBufferException

Protocol message tag

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web22

Stack trace

  • com.google.protobuf.InvalidProtocolBufferException: Protocol message tag at retrofit2.converter.protobuf.ProtoResponseBodyConverter.convert(ProtoResponseBodyConverter.java:40) at retrofit2.converter.protobuf.ProtoResponseBodyConverter.convert(ProtoResponseBodyConverter.java:26) at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:116) at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:211) at retrofit2.OkHttpCall.execute(OkHttpCall.java:174) at com.testing.InvokeTestingPOS.main(InvokeTestingPOS.java:31) Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message tag at com.google.protobuf.InvalidProtocolBufferException.invalidWireType(InvalidProtocolBufferException.java:99) at com.google.protobuf.UnknownFieldSet$Builder.mergeFieldFrom(UnknownFieldSet.java:515) at com.google.protobuf.GeneratedMessage.parseUnknownField(GeneratedMessage.java:205) at json2pb.TestingInfo.<init>(TestingInfo.java:61) at json2pb.TestingInfo.<init>(TestingInfo.java:9) at json2pb.TestingInfo$1.parsePartialFrom(TestingInfo.java:131) at json2pb.TestingInfo$1.parsePartialFrom(TestingInfo.java:126) at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:192) at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:209) at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49) at retrofit2.converter.protobuf.ProtoResponseBodyConverter.convert(ProtoResponseBodyConverter.java:38)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,