How to fix "While parsing a protocol message, the input ended unexpectedly in the middle of a field" error
Getting InvalidProtocolBufferException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. error when parsing Protobuf Not sure why parsing failing ever though I can see the output if I call response.getContentAsString() method on response object. my Proto file: syntax = "proto2"; package com.test.protocol; option java_package = "com.test.protocol.v1"; option java_outer_classname = "Test1"; message Test2 { required int64 id = 1; required string value = 2 } I wrote API to return the Proto response which looks like below final Test2.Builder builder = TEST2.n
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.