logstash-plugins / logstash-codec-protobuf

Codec plugin for parsing Protobuf messages
Apache License 2.0
26 stars 16 forks source link

Protobuf encoding TypeError map :<field> #59

Open femuitar opened 3 years ago

femuitar commented 3 years ago

Tested with

_pb.rb ` require 'google/protobuf'

Google::Protobuf::DescriptorPool.generated_pool.build do add_message "XX" do optional :timestamp, :int64, 1 map :map_string, :string, :string, 2 end end .......... `

will get the following error Protobuf encoding error 2.2: Type error (#<TypeError: Invalid argument for string field.>). Will try to convert the data types. Original data: ......