You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "WangXiaoJin (via GitHub)" <gi...@apache.org> on 2023/06/30 05:14:20 UTC

[GitHub] [dubbo] WangXiaoJin opened a new issue, #12631: consumer 端 RpcContext.getServiceContext().getRemoteAddressString() 返回 null

WangXiaoJin opened a new issue, #12631:
URL: https://github.com/apache/dubbo/issues/12631

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.2.2
   * Operating System version: Win10
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   consumer端的Filter中执行 `RpcContext.getServiceContext().getRemoteAddressString()` 返回null,**2.5.7**版本中是可以通过
   `com.alibaba.dubbo.rpc.RpcContext#getRemoteAddressString()` 获取 provider 地址的。在**3.2.2**版本中设置`RemoteAddress`逻辑比较滞后
   
   ### Expected Behavior
   
   期望在consumer端可以通过`RpcContext.getServiceContext().getRemoteAddressString()` 、`RpcContext.getServiceContext().getRemoteApplicationName()` 获取 对端服务信息
   
   ### Actual Behavior
   
   实际现象是consumer端获取信息返回null,在provider端可以成功获取
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Re: [I] consumer 端 RpcContext.getServiceContext().getRemoteAddressString() 返回 null [dubbo]

Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM closed issue #12631: consumer 端 RpcContext.getServiceContext().getRemoteAddressString()  返回 null
URL: https://github.com/apache/dubbo/issues/12631


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] xixingya commented on issue #12631: consumer 端 RpcContext.getServiceContext().getRemoteAddressString() 返回 null

Posted by "xixingya (via GitHub)" <gi...@apache.org>.
xixingya commented on issue #12631:
URL: https://github.com/apache/dubbo/issues/12631#issuecomment-1614538665

   hello, RpcContext.getServiceContext().getRemoteAddressString()是可以正常获取值的,RpcContext.getServiceContext().getRemoteApplicationName()这个确实拿不到


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org