Skip to content
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

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

Open
l1honghui opened this issue Jan 3, 2020 · 3 comments
Open

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

l1honghui opened this issue Jan 3, 2020 · 3 comments

Comments

@l1honghui
Copy link

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
Copy link
Author

l1honghui commented Jan 3, 2020

request message is

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

request message

@l1honghui
Copy link
Author

the swagger is also bad , there are all post

@kingreatwill
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants