-
Notifications
You must be signed in to change notification settings - Fork 616
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
Can't compile and produce the js file for proto with inner "[" #1964
Comments
most likely error in method loadSync |
Running into this too |
The |
@murgatroid99 |
Fortunately, Though, if the |
This is resolved on the I'm going to open up an issue in |
Hi! I have error with compiling .proto having inner "[" char when use custom mountebank:
`error: [2021-11-11T11:36:31.231Z] - [grpc:4542] /app/node_modules/@ozonru/mountebank-grpc/src/mock.js:40
throw new ProtoError(serviceOptions.file, error.message)
^
ProtoError: Could not loading a proto file "my_service.proto". Have you added a path with vendor's proto files to request?
Error message: illegal value '[' (protos/my_service/my_service.proto, line 440)
at /app/node_modules/@ozonru/mountebank-grpc/src/mock.js:40:19
at Array.forEach ()
at Object.getServerInstance (/app/node_modules/@ozonru/mountebank-grpc/src/mock.js:31:37)
at Server. (/app/node_modules/@ozonru/mountebank-grpc/src/index.js:22:41)
at Object.onceWrapper (events.js:420:28)
at Server.emit (events.js:314:20)
at emitCloseNT (net.js:1657:8)
at processTicksAndRejections (internal/process/task_queues.js:83:21)`
In proto on line 440 file we have field:
int64 some_id = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {required: ['some_id']}];
I assume it may be related to this.
Could you help to solve this problem?
The text was updated successfully, but these errors were encountered: