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
[QUESTION] grpc服务端,异常处理该怎么做? #192
Comments
请提供一个具体的 demo 压缩包 |
https://github.com/minxinqing/test-hyperf master分支 分别执行 testQueryOne能正常获取结果
testQueryTwo希望获取结果
现结果:
App\Controller\Grpc\OrderController中处理逻辑如下:
|
你的 proto 文件在哪? |
另一个项目中
|
@huangzhhui |
@minxinqing 能复现,我需要点时间重新梳理一下 GRPC 的底层流程,太久没碰这块了 |
好的,等你们发版 |
@limingxinleo 更新了1.0.6,依然不可以 |
我直接 clone 了你的项目,测试是没问题的。。。 |
swoole 4.3.5 下不可以,升级到 4.4.1之后正常了 |
我现在像http服务端一样配置了grpc的异常处理器,但是客户端不能在异常情况下正确获得响应。
非异常时,controller返回的对象客户端能正常获取。
exceptions.php
BusinessExceptionHandler.php
GrpcExceptionHandler.php
GrpcHandler\BusinessExceptionHandler中的日志能正常输出,所以异常肯定是进来了,handleResponse()是从Hyperf\GrpcServer\CoreMiddleware复制过来的。
The text was updated successfully, but these errors were encountered: