Skip to content

protobuf-encoder is not selecting the correct message #6

@juk80x

Description

@juk80x

for name, obj in inspect.getmembers(proto_module):

This line is only returning the first Message in alphabetical order. This results in the following error if that's not the correct message:

Subprocess exited with error (status code 1):
Traceback (most recent call last):
  File "/Library/Python/3.9/lib/python/site-packages/google/protobuf/json_format.py", line 554, in _ConvertFieldValuePair
    raise ParseError(
google.protobuf.json_format.ParseError: Message type "com.saasbee.pbx.proto.MyMessage" has no field named "mySubMessage" at "MyMessage".
 Available Fields(except extensions): "['field1', 'field2', 'field3', 'field4', 'field5']"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions