konsumer / konsumer/grpc-dynamic-gateway

Error: Unexpected token: "XXX.proto". Expected ";"

Open
#50 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
110
Forks
27
PR merge metrics
No merged PRs in 30d

Description

We do not support `import public` when running `grpc-dynamic-gateway`.

After removing the `public`, it runs without any problem.

```
/home/huan/git/grpc-dynamic-gateway/node_modules/protocol-buffers-schema/parse.js:501
if (tokens[0] !== ';') throw new Error('Unexpected token: ' + tokens[0] + '. Expected ";"')
^

Error: Unexpected token: "puppet/base.proto". Expected ";"
```

Related issue: https://github.com/grpc-ecosystem/grpc-gateway/issues/139

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure in grpc-dynamic-gateway using an import public statement, then inspect node_modules/protocol-buffers-schema/parse.js at the reported parser check. Done means grpc-dynamic-gateway runs successfully without removing public from the import.

Written by the indexing model from the issue text.

Assessment

Tech stack
grpc, javascript, nodejs
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.