grpc / grpc/grpc-web

Syntax error: Plugin failed with status code 2.

Open
#1,120 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
802
Avg merge
1d 7h
Merged PRs (30d)
5

Description

Hi

I'm following the "helloworld" tutorial and I'm at the point of running the below command:

protoc -I=. helloworld.proto \
--js_out=import_style=commonjs:. \
--grpc-web_out=import_style=commonjs,mode=grpcwebtext:.

Getting this syntax error -

/usr/local/bin/protoc-gen-grpc-web: 8: Syntax error: newline unexpected
--grpc-web_out: protoc-gen-grpc-web: Plugin failed with status code 2.

Please advise

Contributor guide

Open the contributing guide

Research direction

Start with the helloworld tutorial prerequisites and the executable at /usr/local/bin/protoc-gen-grpc-web, then rerun the protoc command shown in the issue. Done means the plugin runs without the shell syntax error and generates the expected gRPC-Web files.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.