Skip to content

Import of other files producing error #32

Description

@tk4arts

Hello there,

in another issue I already described this issue but since there were two seperate problems I will open this new one.

My .proto file looks something like this:

syntax = "proto3";

import "google/protobuf/wrappers.proto";

message Department {
    google.protobuf.Int32Value department_id = 100;
    google.protobuf.StringValue name = 200;
}

The message I want to send looks like this:

msg.payload = {
    department_id: 12,
    name: "Name"
}

When trying to encode this message through the encode node this error message appears:
image

A suggestion was to load the wrappers.proto file as a comma seperated path in the protofile node like shown below:

PROTO/my-proto-file.proto,google/protobuf/wrappers.proto

My folder structure looks like this from the root directory of node-red:

1. PROTO
    - my-proto-file.proto
2. google
    a. protobuf
        - wrappers.proto

But I am still getting the same error message.

Hope someone can help with this.

Thanks in advance!
Till

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions