question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Protocol message tag had invalid wire type

See original GitHub issue
io.grpc.StatusRuntimeException: INTERNAL: Invalid protobuf byte sequence
	at io.grpc.Status.asRuntimeException(Status.java:534)
	at io.grpc.protobuf.lite.ProtoLiteUtils$2.parse(ProtoLiteUtils.java:173)
	at io.grpc.protobuf.lite.ProtoLiteUtils$2.parse(ProtoLiteUtils.java:94)
	at io.grpc.MethodDescriptor.parseRequest(MethodDescriptor.java:293)
	at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.messageRead(ServerCallImpl.java:243)
	at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1.runInContext(ServerImpl.java:555)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52)
	at io.grpc.internal.SerializingExecutor.runSerializingExecutor.java:117)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: com.google.protobuf.InvalidProtocolBufferException$InvalidWireTypeException: Protocol message tag had invalid wire type.
	at com.google.protobuf.InvalidProtocolBufferException.invalidWireType(InvalidProtocolBufferException.java:115)
	at com.google.protobuf.CodedInputStream$ArrayDecoder.skipField(CodedInputStream.java:692)
	at com.yxbj.service.grpc.payment.ITunesNotificationRequest.<init>(ITunesNotificationRequest.java:53)
	at com.yxbj.service.grpc.payment.ITunesNotificationRequest.<init>(ITunesNotificationRequest.java:9)
	at com.yxbj.service.grpc.payment.ITunesNotificationRequest$1.parsePartialFrom(ITunesNotificationRequest.java:2000)
	at com.yxbj.service.grpc.payment.ITunesNotificationRequest$1.parsePartialFrom(ITunesNotificationRequest.java:1995)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:91)
	at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
	at io.grpc.protobuf.lite.ProtoLiteUtils$2.parseFrom(ProtoLiteUtils.java:178)
	at io.grpc.protobuf.lite.ProtoLiteUtils$2.parse(ProtoLiteUtils.java:170)
	... 9 more
"},
"threadContext":{}}

com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.

com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).

com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ejona86commented, May 20, 2019

@vaikzs, “Protocol message had invalid UTF-8.” Either the remote sent you an invalid proto or there was corruption on-the-wire. To help at all we’d need to know more of how this was triggered. It’s useful to know whether this is reproducable, used TLS, and what client/server/proxy implementations were involved.

1reaction
ejona86commented, Apr 16, 2019

Can you provide more information about how this occurred? These exceptions normally mean either 1) corruption or 2) you aren’t parsing a protobuf. Is this seen on client or server, and what is the remote software being used? What is done to trigger this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Protobuf error:Protocol message tag had invalid wire type
When I see users report this type of message, it almost always means they've corrupted the file. Starting from a .txt is a...
Read more >
Protocol message tag had invalid wire type - Search
protobuf.InvalidProtocolBufferException : Protocol message tag had invalid wire type. From the log message, the partition file path is:.
Read more >
Fails giving "Protocol message tag had invalid wire type"
Running a sample AddPerson. java example - Fails giving "Protocol message tag had invalid wire type"
Read more >
The "Protocol message tag had invalid wire type" Exception is ...
The "Protocol message tag had invalid wire type" Exception is reported in the PROTOBUF data format ... Due to business needs, the original...
Read more >
Protocol message tag had invalid wire type - iTecNote
Protocol message tag had invalid wire type ... my application sends data through protobuf from a server to a client. When I am...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found