C++ grpc throwing error for option params

Hello,

I am trying to invoke chirpstack v4 grpc using c++ grpc apis.

I was able to compile the proto fies and link them with my client code.

But I am encountering following errors when I run them.

E0000 00:00:1688646125.650189 1547554 descriptor.cc:4303] api.Tenant: Fields with proto3_optional set must be a member of a one-field oneof
E0000 00:00:1688646125.650209 1547554 descriptor.cc:4303] api.Tenant: Fields with proto3_optional set must be a member of a one-field oneof
E0000 00:00:1688646125.650222 1547554 descriptor.cc:4303] api.Tenant: Fields with proto3_optional set must be a member of a one-field oneof

Should there be any changes in the proto files? I am compiling on 20.04 ubuntu linux.

Protobuf version is 23.3.

Regards,
Harsha

I do not have experience with gRPC and C++, but if you (or somebody else) find what is causing the issue and there is a need to update the .proto files, then please create a GitHub issue / pull-request for this. For some languages (e.g. Go, Java, …) it is possible to set additional attributes that are needed for generating the proper code. It might be that this is also needed in your case.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.