-
Notifications
You must be signed in to change notification settings - Fork 3
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
TypeError when attempting to getPackageObject from descriptor #1
Comments
Please send your protobufjs version |
I'm also having this issue and I'm on protobufjs 7.2.0. The following is my logs /Users/marcus/balaena-quant/rbs/node_modules/.pnpm/[email protected]/node_modules/protobufjs/ext/descriptor/index.js:219
type.oneofsArray[descriptor.field[i].oneofIndex].add(field);
^
TypeError: Cannot read properties of undefined (reading 'add')
at Function.fromDescriptor (/Users/marcus/balaena-quant/rbs/node_modules/.pnpm/[email protected]/node_modules/protobufjs/ext/descriptor/index.js:219:66)
at Function.fromDescriptor (/Users/marcus/balaena-quant/rbs/node_modules/.pnpm/[email protected]/node_modules/protobufjs/ext/descriptor/index.js:92:42)
at createPackageDefinitionFromDescriptorSet (/Users/marcus/balaena-quant/rbs/node_modules/.pnpm/@[email protected]/node_modules/@grpc/proto-loader/build/src/index.js:160:32)
at Object.loadFileDescriptorSetFromObject (/Users/marcus/balaena-quant/rbs/node_modules/.pnpm/@[email protected]/node_modules/@grpc/proto-loader/build/src/index.js:215:12)
at Descriptor.getPackageDefinition (/Users/marcus/balaena-quant/rbs/node_modules/.pnpm/[email protected]/node_modules/grpc-js-reflection-client/dist/src/Descriptor.js:21:28)
at Descriptor.getPackageObject (/Users/marcus/balaena-quant/rbs/node_modules/.pnpm/[email protected]/node_modules/grpc-js-reflection-client/dist/src/Descriptor.js:24:48)
at grpcPlugin (/Users/marcus/balaena-quant/rbs/src/plugins/grpc.ts:15:36)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) |
I add this issue to my list. I will try to fix it and push a new release in next week. |
@gawsoftpl any updates? I ran into this issue as well. |
how to fix ? |
I am working on new version of grpc reflection client. I need couple days for fix this. |
I published new version of this package. If you have still above error please try new version of protobufjs |
@gawsoftpl is this problem solved? I still have error |
@alizhan-plb Please send your dependencies list from |
@gawsoftpl
|
I see that you use rest map for grpc, do you use gRPC-Gateway? Please try upgrade "grpc-js-reflection-client" to version |
When you want to download proto file via reflection of grpc you connect direct to grpc server?
@alizhan-plb ^ FYI Thanks. |
I still have the same error. |
Without access to grpc server I cannot resolve this issue. |
If you cannot give me access to your grpc server you should debug this file: This is a issue with protobufjs package and you have to check which grpc message has error. |
I'm getting the following TypeError when attempting to follow the readme to get the package object from a descriptor:
I am able to get the descriptor fine, I've logged it and the values in it make sense. My code:
The text was updated successfully, but these errors were encountered: