grpc-json-proxy
grpc-json-proxy copied to clipboard
Stream error: stream ID 3; INTERNAL_ERROR
hi Jason: I tried my app with postman according to your turorial, but i got an error as follows:
Proto file: syntax = "proto3";
option java_multiple_files = true; option java_package = "io.grpc.examples.helloworld"; option java_outer_classname = "HelloWorldProto"; option objc_class_prefix = "HLW";
package helloworld;
// The greeting service definition. service Greeter { // Sends a greeting rpc SayHello (HelloRequest) returns (HelloReply) {} }
// The request message containing the user's name. message HelloRequest { string name = 1; }
// The response message containing the greetings message HelloReply { string message = 1; }
Could you help me, please?
Looks like you are getting this error:
// InvalidArgument indicates client specified an invalid argument. // Note that this differs from FailedPrecondition. It indicates arguments // that are problematic regardless of the state of the system // (e.g., a malformed file name). InvalidArgument Code = 3
Probably because your JSON is invalid. All JSON keys should be surrounded by quotation marks.
{"Name":"Johnny"}
Hi @nlkhang , In which language your service which runs on 50051 is written in?
C++