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

Import of other files producing error #32

Open
tk4arts opened this issue Nov 24, 2021 · 0 comments
Open

Import of other files producing error #32

tk4arts opened this issue Nov 24, 2021 · 0 comments

Comments

@tk4arts
Copy link

tk4arts commented Nov 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant