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

Stream error: stream ID 3; INTERNAL_ERROR #3

Open
nlkhang opened this issue Feb 24, 2019 · 3 comments
Open

Stream error: stream ID 3; INTERNAL_ERROR #3

nlkhang opened this issue Feb 24, 2019 · 3 comments

Comments

@nlkhang
Copy link

nlkhang commented Feb 24, 2019

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?

@FuzzyStatic
Copy link

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

@bvenkatr
Copy link

bvenkatr commented Apr 22, 2019

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

@ljhone
Copy link

ljhone commented Oct 10, 2019

C++

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

4 participants