kingreatwill / Ocelot.GrpcHttpGateway

Ocelot.GrpcHttpGateway
MIT License
94 stars 24 forks source link

The GRPC request message parameter with post request is null #3

Open l1honghui opened 4 years ago

l1honghui commented 4 years ago

fail: Ocelot.GrpcHttpGateway.OcelotGrpcHttpMiddleware[0] requestId: 0HLSG279IK3G9:00000002, previousRequestId: no previous request id, message: error in request grpc service.--grpc://127.0.0.1:50051/PlayerSearch/SearchTeam, exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null. Parameter name: message at Google.Protobuf.ProtoPreconditions.CheckNotNull[T](T value, String name) at Google.Protobuf.MessageExtensions.ToByteArray(IMessage message) at Built.Grpcc.ArgsParser`1.<>c.<.cctor>b__2_1(T arg) in E:\workspace\lihonghui\csharp\Ocelot.GrpcHttpGateway\src\Ocelot.GrpcHttpGateway\Built.Grpcc\GrpcMethod.cs:line 40

message is null

l1honghui commented 4 years ago

request message is

{
  "Country": "cn",
  "ExpectedDataCount": 0,
  "Name": "afei"
}

request message

l1honghui commented 4 years ago

the swagger is also bad , there are all post

kingreatwill commented 4 years ago

swagger is incomplete and it not support http post method. This is an experimental project.