FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: 修复使用Nacos GRPC客户端做服务注册发现且没使用配置中心时,仍然发送配置监听请求的问题 by MorriosL · Pull Request #7708 · hyperf/hyperf · GitHub

/ hyperf Public

fix: 修复使用Nacos GRPC客户端做服务注册发现且没使用配置中心时,仍然发送配置监听请求的问题 - #7708

Open
MorriosL wants to merge 1 commit into
hyperf:masterfrom
MorriosL:hotfix/nacos-grpc
Open

fix: 修复使用Nacos GRPC客户端做服务注册发现且没使用配置中心时,仍然发送配置监听请求的问题#7708
MorriosL wants to merge 1 commit into
hyperf:masterfrom
MorriosL:hotfix/nacos-grpc

Conversation

MorriosL commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

运行环境:hyperf/hyperf:8.3-alpine-v3.20-swoole-v5.1
Hyperf版本:3.1

复现场景:有使用基于nacos的服务注册发现,但未使用配置中心。按默认配置下启动服务10秒后会出现以下报错
[ERROR] Hyperf\Http2Client\Exception\TimeoutException: Recv timeout. in /data/project/vendor/hyperf/http2-client/src/Client.php:114
Stack trace:
#0 /data/project/vendor/hyperf/http2-client/src/Client.php(133): Hyperf\Http2Client\Client->recv()
#1 /data/project/vendor/hyperf/nacos/src/GrpcClient.php(110): Hyperf\Http2Client\Client->request()
#2 /data/project/vendor/hyperf/nacos/src/GrpcClient.php(158): Hyperf\Nacos\GrpcClient->request()
#3 /data/project/vendor/hyperf/nacos/src/GrpcClient.php(233): Hyperf\Nacos\GrpcClient->listen()
#4 /data/project/vendor/hyperf/coroutine/src/Coroutine.php(80): Hyperf\Nacos\GrpcClient->Hyperf\Nacos{closure}()
#5 [internal function]: Hyperf\Coroutine\Coroutine::Hyperf\Coroutine{closure}()
#6 {main}
[WARNING] Hyperf\Http2Client\Exception\TimeoutException: Recv timeout. in /data/project/vendor/hyperf/http2-client/src/Client.php:114
Stack trace:
#0 /data/project/vendor/hyperf/http2-client/src/Client.php(133): Hyperf\Http2Client\Client->recv()
#1 /data/project/vendor/hyperf/nacos/src/GrpcClient.php(110): Hyperf\Http2Client\Client->request()
#2 /data/project/vendor/hyperf/nacos/src/GrpcClient.php(194): Hyperf\Nacos\GrpcClient->request()
#3 /data/project/vendor/hyperf/coroutine/src/Coroutine.php(80): Hyperf\Nacos\GrpcClient->Hyperf\Nacos{closure}()
#4 [internal function]: Hyperf\Coroutine\Coroutine::Hyperf\Coroutine{closure}()
#5 {main}

原因:vendor/hyperf/nacos/src/GrpcClient.php的listen方法中,即使没使用配置中心,也会无差别的发送空的配置监听请求

MorriosL commented Feb 9, 2026

Copy link
Copy Markdown
Contributor Author

@limingxinleo 辛苦大佬帮看看这个,年前还会不会再发个版本?

MorriosL commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

@limingxinleo 辛苦大佬看看这个PR,业务里有确实有只用到服务治理,没用到配置中心的需求

MorriosL commented May 26, 2026
edited
Loading

Copy link
Copy Markdown
Contributor Author

@huangdijia 辛苦帮忙review下,业务上确实需要使用nacos的grpc做服务治理

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL