grpc-json-proxy icon indicating copy to clipboard operation
grpc-json-proxy copied to clipboard

Stream error: stream ID 3; INTERNAL_ERROR

Open nlkhang opened this issue 6 years ago • 3 comments

hi Jason: I tried my app with postman according to your turorial, but i got an error as follows:

image

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?

nlkhang avatar Feb 24 '19 12:02 nlkhang

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"}

FuzzyStatic avatar Mar 28 '19 01:03 FuzzyStatic

Hi @nlkhang , In which language your service which runs on 50051 is written in?

bvenkatr avatar Apr 22 '19 12:04 bvenkatr

C++

ljhone avatar Oct 10 '19 08:10 ljhone