You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARN[0075] Failed to search for unknown fields in message =proto_decoder error="failed to enrich decode descriptor: unknown nested field type map[interface {}]interface {}"
grpc-dump prints warnings, but dumps everything correctly:
WARN[0003] Failed to search for unknown fields in message =proto_decoder error="failed to enrich decode descriptor: unknown nested field type map[interface {}]interface {}"
{"service":"helloworld.Greeter","method":"SayHello","messages":[{"message_origin":"client","raw_message":"CgV3b3JsZA==","message":{"name":"world"},"timestamp":"2020-03-31T23:47:27.013997+03:00"},{"message_origin":"server","raw_message":"CgtIZWxsbyB3b3JsZA==","message":{"message":"Hello world"},"timestamp":"2020-03-31T23:47:27.014589+03:00"}],"metadata":{":authority":["localhost:8980"],"accept-encoding":["identity,gzip"],"content-type":["application/grpc"],"grpc-accept-encoding":["identity,deflate,gzip"],"user-agent":["grpc-c++/1.19.1 grpc-c/7.0.0 (osx; chttp2; gold)"],"via":["HTTP/2.0 127.0.0.1:8980"]},"metadata_response_headers":{"content-type":["application/grpc"]},"metadata_response_trailers":{}}
WARN[0075] Failed to search for unknown fields in message =proto_decoder error="failed to enrich decode descriptor: unknown nested field type map[interface {}]interface {}"
{"service":"helloworld.Greeter","method":"SayHello","messages":[{"message_origin":"client","raw_message":"CgV3b3JsZBIKCgNhYmMSAzEyMw==","message":{"name":"world","foo":{"abc":"123"}},"timestamp":"2020-03-31T23:48:38.287028+03:00"},{"message_origin":"server","raw_message":"CgtIZWxsbyB3b3JsZA==","message":{"message":"Hello world"},"timestamp":"2020-03-31T23:48:38.28725+03:00"}],"metadata":{":authority":["localhost:8980"],"accept-encoding":["identity,gzip"],"content-type":["application/grpc"],"grpc-accept-encoding":["identity,deflate,gzip"],"user-agent":["grpc-c++/1.19.1 grpc-c/7.0.0 (osx; chttp2; gold)"],"via":["HTTP/2.0 127.0.0.1:8980"]},"metadata_response_headers":{"content-type":["application/grpc"]},"metadata_response_trailers":{}}
Nevertheless map is dumped correctly.
Steps to reproduce:
Workaround
In proto-files for grpc-dump replace map with repeated MapEntry field.
See: https://developers.google.com/protocol-buffers/docs/proto3#backwards-compatibility
The text was updated successfully, but these errors were encountered: