How to debug Intermittent StatusCode.UNAVAILABLE error

44 views
Skip to first unread message

zheco...@gmail.com

unread,
Jun 12, 2019, 10:00:16 AM6/12/19
to grpc.io
Hi all,

My gRPC client raised this error

...
File "/home/work/code/venv/site-packages/grpc/_channel.py", line 466, in _end_unary_response_blocking
raise _Rendezvous(state, None, None, deadline)
_Rendezvous: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "OS Error"
debug_error_string= "{"created":"@1560255578.803770511","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1036,"grpc_message":"OS Error","grpc_status":14}"

It says "Error received from peer", so my server send this status. And it also says "OS Error".

How can inspect what is going on in my server when it says "OS Error"? I expected some startup options or environment variables.

Thanks.

Lidi Zheng

unread,
Jun 12, 2019, 4:19:57 PM6/12/19
to grpc.io
Hi,

gRPC provides environmental variables that enables trace log.

The simplest pair will be "GRPC_VERBOSITY=debug" and "GRPC_TRACE=all".

Lidi Zheng
Reply all
Reply to author
Forward
0 new messages