How to read grpc command line tool error messages from the responses?

524 views
Skip to first unread message

Sanket Lawangare

unread,
Feb 10, 2017, 10:41:54 AM2/10/17
to grpc.io
I am using the grpc command line tool to test response for my request. This is the official link to the grpc command line tool: https://github.com/grpc/grpc/blob/master/doc/command_line_tool.md

In the response I am getting it says that there are some errors however, it does not show what the errors are. Here is the response I got from my client request:  

Failed to read response.

Rpc failed with status code 12 error message unknown service my_agent.MyServiceAPI 


I am running the command from the location where my protocol file resides. I am sending a request like this, (FYI: I am also sending the metadata. Irrespective of including the metadata or not I am getting the same error message) : 


~/my_workspace/src/github.com/grpc/bins/opt/grpc_cli call 0.0.0.0:50051 MyGrpcMethod <name_of_my_proto_file.proto> "abc : '12-34-56-78', xyz: '1234'" --metadata "auth:<auth_token>:space:xxx:org:xxx" --enable_ssl=false 



                               

Michael Lumish

unread,
Feb 10, 2017, 11:49:32 AM2/10/17
to Sanket Lawangare, grpc.io
You did get error information: "Rpc failed with status code 12 error message unknown service my_agent.MyServiceAPI " The part that says "unknown service my_agent.MyServiceAPI" means that the server does not have an implementation of a service with that name, and status code 12 means "unimplemented". This probably means that either your server is misconfigured or that you are not using the right proto file in your grpc_cli invocation.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/e4f07e6e-44ae-4bd9-ba43-9ca1c283450c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

m...@spencersims.com

unread,
Feb 8, 2018, 12:48:39 AM2/8/18
to grpc.io
Did you ever figure it out? I would love to know! I'm running into the same problem. 

Dino Wernli

unread,
Feb 8, 2018, 3:28:49 AM2/8/18
to m...@spencersims.com, grpc.io
Apologies for the shameless plug, but another option would be to try polyglot from the grpc-ecosystem. Based on the example call made in the thread above, it seems that polyglot has all the required features.

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.

To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
Reply all
Reply to author
Forward
0 new messages