Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid protobuf warning when using ParseFromString #13713

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lycismail
Copy link
Contributor

If we use parameter module to get/set proto type msg. We should parse the proto msg using ParseFromString. If the proto message contains string element, it will cause error like below.

[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/wire_format_lite.cc:577] String field 'apollo.cyber.proto.Param.string_value' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.

If we use parameter module to get/set proto type msg. We should parse the proto msg using ParseFromString. If the proto message contains string element, it will cause error like below.

[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/wire_format_lite.cc:577] String field 'apollo.cyber.proto.Param.string_value' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
@ApolloAuto ApolloAuto locked and limited conversation to collaborators Jun 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant