You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I send first request to grpc reflection server everythings works fine, I can generate client.
But when I reset my client and send second request to grpc server I received error:
protobufjs@7.2.5/node_modules/protobufjs/src/namespace.js:410throwError("no such Type or Enum '"+path+"' in "+this);^
Error: nosuchTypeorEnum'google.protobuf.Timestamp'inType.requestshistory.RequestCreateRequestItem
# Grpcreflectionclientimport{GrpcReflection}from'grpc-js-reflection-client';constclient=newGrpcReflection(host,ChannelCredentials.createInsecure());// Get services without proto file for specific symbol or file nameconstdescriptor=awaitclient.getDescriptorByFileName('requestshistory.proto');// Create package servicesconstpackageObject: any=descriptor.getPackageObject({keepCase: true,longs: String,enums: String,defaults: true,oneofs: true,});
OS name, version and architecture: [e.g. Linux Ubuntu 23.10 amd64]
Node version [e.g. 20.10.0]
Node installation method [e.g. pnpm]
Package name and version [e.g. @grpc/grpc-js": "^1.9.13"]
The text was updated successfully, but these errors were encountered:
gawsoftpl
changed the title
[@grpc/reflection] Issue with proto file dependencies only on second or next request
[@grpc/grpc-reflection] Issue with proto file dependencies only on second or next request
Dec 14, 2023
gawsoftpl
added a commit
to gawsoftpl/grpc-node
that referenced
this issue
Dec 14, 2023
Resolution
I found issue and create pull request #2632 :
Problem description
When I send first request to grpc reflection server everythings works fine, I can generate client.
But when I reset my client and send second request to grpc server I received error:
Reproduction steps
https://github.com/grpc/grpc-node/blob/d46360df74bbeaee95744b26b7b1e42fa7f10ac5/packages/grpc-reflection/src/implementations/reflection-v1.ts#L317C66-L317C66
Because issue is not appear only on first request propably error is with cache or some fileDependencies map:
Environment
The text was updated successfully, but these errors were encountered: