konsumer / konsumer/grpc-dynamic-gateway
Error: Unexpected token: "XXX.proto". Expected ";"
- 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