美文网首页
grpc 报错 debug_error_string = "{"

grpc 报错 debug_error_string = "{"

作者: Jayce_xi | 来源:发表于2019-07-24 17:11 被阅读0次

1.问题描述

在学习grpc官方文档的时候,发生了一个问题,就是client端迟迟没有反应并且最终会报错,错误如下:

Traceback (most recent call last):
  File "greeter_client.py", line 37, in <module>
    run()
  File "greeter_client.py", line 31, in run
    response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'))
  File "/Users/wengzhenxi/Library/Python/3.6/lib/python/site-packages/grpc/_channel.py", line 565, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/Users/wengzhenxi/Library/Python/3.6/lib/python/site-packages/grpc/_channel.py", line 467, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
    status = StatusCode.UNAVAILABLE
    details = "Socket closed"
    debug_error_string = "{"created":"@1563958480.003440000","description":"Error received from peer ipv4:127.0.0.1:1087","file":"src/core/lib/surface/call.cc","file_line":1052,"grpc_message":"Socket closed","grpc_status":14}"
>

2.错误分析

这是一个中国程序员可能会出现的问题。
首先在google上没有找到答案。(因为外国同志不会遇到)
后来认真研究了一下错误,发现这一条:

"description":"Error received from peer ipv4:127.0.0.1:1087"

表示没有received 到什么东西从1087端口,但是我client端明明是通过50051去请求的。看着1087越看越熟悉。。。我为了看外面的世界,设置了全局代理......去掉代理,解决。
全局代理的坑

3.结束

希望对大家有用。

相关文章

  • grpc 报错 debug_error_string = "{"

    1.问题描述 在学习grpc官方文档的时候,发生了一个问题,就是client端迟迟没有反应并且最终会报错,错误如下...

  • Cocoapods安装GRPC报错记录

    问题截图 报错详情 如上图,在安装gRPC-Core时,下载grpc是没有问题的,但grpc的几个依赖库submo...

  • gRPC 跨进程使用引发的问题

    问题描述 在 Python 项目中使用 gRPC 进行通信,跨进程使用时,会出现阻塞或报错的情况(根据 gRPC....

  • 编译grpc报错

    编译grpc报错错误:对‘StrFormat(const char [45], const double&, do...

  • grpc demo error solution

    [Mark] error solution 在运行官方quick start教程时,import grpc时报错,...

  • golang grpc keepalive

    最近遇到 grpc 客户端报错 rpc error: code = Unavailable desc = tran...

  • C# Grpc传输数据限制

    今天,团队里遇到一个问题 Grpc 报错误信息 :  ExceptionMessage:RpcException ...

  • No package 'libcares' found

    centos7 编译 grpc 时报错: 原因 缺少 c-ares 解决方案 下载 c-ares github地址...

  • python pip安装grpc报错

    原因是环境里安装了python3.x和python2.x,这俩在一起会冲突因为目前项目使用的2.x于是开始卸载3....

  • PHP 安装 grpc 扩展报错

    综合分析结果:centos7.7 默认的gcc版本是 4.8 的;然而 php的grpc扩展安装,需要 gcc 4...

网友评论

      本文标题:grpc 报错 debug_error_string = "{"

      本文链接:https://www.haomeiwen.com/subject/uyhfrctx.html