Error using google.protobuf.Any
See original GitHub issueSandbox: https://repl.it/repls/GleamingWhimsicalInformationtechnology
pbf fails to compile this proto
message RequestEnvelope {
string correlationId = 1;
string callPath = 2;
google.protobuf.Any payload = 3;
}
with
./node_modules/pbf/compile.js:157
default: throw new Error('Unexpected type: ' + field.type);
Error: Unexpected type: google.protobuf.Any
at compileFieldRead (./node_modules/pbf/compile.js:157:28)
Is it known that it’s not supported or am I doing something wrong?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9
Top Results From Across the Web
Language Guide (proto3) | Protocol Buffers - Google Developers
This guide describes how to use the protocol buffer language to structure your protocol buffer data, including .proto file syntax and how to...
Read more >Using google.protobuf.Any in python file - Stack Overflow
But I have an error: TypeError: Parameter to CopyFrom() must be instance of same class: expected google. protobuf. Any got dict.
Read more >google/protobuf/any.proto: file not found on RHEL 7.
google /protobuf/any.proto: File not found. spm.proto:4:1: Import "google/protobuf/any.proto" was not found or had errors. spm.proto:228:3: "google.protobuf.Any" ...
Read more >any.pb.h - Google Git
#error incompatible with your Protocol Buffer headers. Please update. #error your headers. ... template<> PROTOBUF_EXPORT ::google::protobuf::Any* ...
Read more >google.protobuf.message — Protocol Buffers 4.21.1 ...
exception google.protobuf.message. Error ¶. Base error type for this module. ... Recursively calls ByteSize() on all contained messages. Returns:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You may need to manually import the type.
https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto
I have the same problem with Any too. How exactly can I fix it?