Discussion:
[protobuf] Cannot find type for url: type.googleapis.com/google.protobuf.StringValue Error
Siddharth Kherada
2018-09-12 09:16:10 UTC
Permalink
HI Guys,

While using JsonFormat for converting message into JSON format, I am
getting below error:

*com.google.protobuf.InvalidProtocolBufferException: Cannot find type for
url: type.googleapis.com/google.protobuf.StringValue*
at
com.google.protobuf.util.JsonFormat$PrinterImpl.printAny(JsonFormat.java:730)
at
com.google.protobuf.util.JsonFormat$PrinterImpl.access$900(JsonFormat.java:568)
at
com.google.protobuf.util.JsonFormat$PrinterImpl$1.print(JsonFormat.java:632)
at
com.google.protobuf.util.JsonFormat$PrinterImpl.print(JsonFormat.java:611)
at
com.google.protobuf.util.JsonFormat$PrinterImpl.printSingleFieldValue(JsonFormat.java:1082)
at
com.google.protobuf.util.JsonFormat$PrinterImpl.printSingleFieldValue(JsonFormat.java:947)

Is this a bug? I have verified this both in Python and Java.

Thanks,
Sid
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Loading...