grpcurl icon indicating copy to clipboard operation
grpcurl copied to clipboard

error getting request data

Open todayforever opened this issue 2 years ago • 3 comments

Hope to be allowed (error getting request data)

todayforever avatar Dec 08 '22 10:12 todayforever

@todayforever, this issue contains no actionable information that we could use to help you. Please provide some details as to what you were trying to do, the command you were trying to run, the error message you got, and any other useful context.

jhump avatar Dec 08 '22 13:12 jhump

invoke.go 153: func invokeUnary(ctx context.Context, stub grpcdynamic.Stub, md *desc.MethodDescriptor, handler InvocationEventHandler, requestData RequestSupplier, req proto.Message) error {

156: err := requestData(req)

If the field in req does not contain the field of requesetData, error has no known field named. I hope this restriction can be removed or the user can customize the option

todayforever avatar Dec 09 '22 02:12 todayforever

@todayforever, so you mean the JSON data you are providing has properties that are not fields of the request? Why do you want this to be allowed? I don't understand a use case where you'd need to be able to send invalid data.

jhump avatar Dec 09 '22 12:12 jhump