We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Version:Nacos 2.0.0 当客户端指定project.name属性后,订阅服务时,Nacos控制台订阅列表中应用名仍然显示unknown
Expected behavior 应该显示客户端指定的app
原因:在SubscribeServiceRequestHandler#handle中,创建Subscriber对象时写死了app=unknown
Subscriber subscriber = new Subscriber(meta.getClientIp(), meta.getClientVersion(), "unknown", meta.getClientIp(), namespaceId, groupedServiceName, 0, request.getClusters());
解决办法参考:客户端会在request的header里添加了app,服务端可以从request的header中获取
String app = request.getHeader("app", "unknown"); Subscriber subscriber = new Subscriber(meta.getClientIp(), meta.getClientVersion(), app, meta.getClientIp(), namespaceId, groupedServiceName, 0, request.getClusters());
The text was updated successfully, but these errors were encountered:
hello,你能提一个pr来修复吗。
Sorry, something went wrong.
I think this problem has been solved.
No branches or pull requests
Describe the bug
Version:Nacos 2.0.0
当客户端指定project.name属性后,订阅服务时,Nacos控制台订阅列表中应用名仍然显示unknown
Expected behavior
应该显示客户端指定的app
原因:在SubscribeServiceRequestHandler#handle中,创建Subscriber对象时写死了app=unknown
解决办法参考:客户端会在request的header里添加了app,服务端可以从request的header中获取
The text was updated successfully, but these errors were encountered: