Skip to content

Error parsing rpc #4

@hayait599

Description

@hayait599

when I try parsing a proto file it gives the following error

message: "Expected \"'\", \".\", \"/*\", \"//\", \"0\", \"\\\"\", \"false\", \"inf\", \"nan\", \"true\", [ \\r\\n\\t], [0-9], [1-9], [A-Za-z], or [\\-+] but \"{\" found."

after debugging the code, the issue was from this line

service myService {
   rpc myServiceActivities (myServiceActivitiesRequest) returns (myServiceActivitiesResponse) {
        option (api) = ALPHA;
        option (api) = {  // this brace cased the error
            get: "/api"
        };
    }
}

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