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.

Error using google.protobuf.Any

See original GitHub issue

Sandbox: 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:open
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
kjvalencikcommented, Dec 19, 2019
0reactions
kenjichanhkgcommented, Nov 9, 2022

I have the same problem with Any too. How exactly can I fix it?

Read more comments on GitHub >

github_iconTop 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 >

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