Android RD - dob string "1991-07-28" is unable to parse getting InvalidProtocolBufferException for Protobuf format

64 views
Skip to first unread message

rajesh goswami

unread,
Apr 3, 2020, 8:04:03 AM4/3/20
to Aadhaar Registered Devices Discussion Group

pi.setDob(Auth.Dob.parseFrom(ByteString.copyFrom("1991-07-28".getBytes())));

"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><PidOptions ver=\"1.0\">   <CustOpts/>  
 <Demo><Pi name=\"Rajesh Goswami\" ms=\"E\" gender=\"M\" dob=\"1991-07-28\" dobt=\"D\" phone=\"XXX\" 
email=\"XXX\" ></Pi></Demo>   <Opts env=\"S\" fCount=\"1\" fType=\"0\" format=\"1\" iCount=\"0\" iType=\"\" 
pCount=\"0\" pidVer=\"2.0\" posh=\"UNKNOWN\" timeout=\"10000\"/></PidOptions>";

where pi is Auth.Pi.Builder 
while parsing ByteString in parseForm method getting 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.

if anyone doing auth request successfully for Demo graphic details for protobuf  kindly help me out. Thanks in advance
		

Vijay Shanker Dubey

unread,
Apr 4, 2020, 5:20:46 AM4/4/20
to aadha...@googlegroups.com
Are you using correct version of *.protob file?
---
Thanks & Regards,
Vijay Shanker Dubey


--
You received this message because you are subscribed to the Google Groups "Aadhaar Registered Devices Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aadhaar_rd+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/aadhaar_rd/1b13694a-acf6-48ea-ac79-d9c8ef899867%40googlegroups.com.

rajesh goswami

unread,
Apr 5, 2020, 1:08:49 AM4/5/20
to Aadhaar Registered Devices Discussion Group
I suppose that I am using right one Could you please attach the best one you have, I am attaching my Auth java file also please suggest and Thanks, Vijay for your reply.


On Saturday, April 4, 2020 at 2:50:46 PM UTC+5:30, Vijay Shanker Dubey wrote:
Are you using correct version of *.protob file?
---
Thanks & Regards,
Vijay Shanker Dubey


On Fri, Apr 3, 2020 at 5:34 PM rajesh goswami <rajeshgo...@gmail.com> wrote:

pi.setDob(Auth.Dob.parseFrom(ByteString.copyFrom("1991-07-28".getBytes())));

"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><PidOptions ver=\"1.0\">   <CustOpts/>  
 <Demo><Pi name=\"Rajesh Goswami\" ms=\"E\" gender=\"M\" dob=\"1991-07-28\" dobt=\"D\" phone=\"XXX\" 
email=\"XXX\" ></Pi></Demo>   <Opts env=\"S\" fCount=\"1\" fType=\"0\" format=\"1\" iCount=\"0\" iType=\"\" 
pCount=\"0\" pidVer=\"2.0\" posh=\"UNKNOWN\" timeout=\"10000\"/></PidOptions>";

where pi is Auth.Pi.Builder 
while parsing ByteString in parseForm method getting 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.

if anyone doing auth request successfully for Demo graphic details for protobuf  kindly help me out. Thanks in advance
		

--
You received this message because you are subscribed to the Google Groups "Aadhaar Registered Devices Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aadha...@googlegroups.com.
Auth.java
Reply all
Reply to author
Forward
0 new messages