slackwareer opened a new issue, #5405:
URL: https://github.com/apache/shenyu/issues/5405

   ### Is there an existing issue for this?
   
   - [X] I have searched the existing issues
   
   ### Current Behavior
   
   SpringCloud driven by alibaba nacos always get "get upstream ip error" error.
   
   I traced the code of shenyu, and find a possible bug.
   The `NacosServiceInstance` hasn't implemented the 
`ServiceInstance.getScheme` method,so the 
`LoggingServerHttpResponse.getUpstreamIpFromHttpDomain` always get the error 
mentioned above.
   
   ### Expected Behavior
   
   It should use the http as its scheme,and the `get upstream ip error` should 
be disappeared.
   
   ### Steps To Reproduce
   
   * Build a bootstrap project with SpringCloud and alibaba-nacos
   * Client register a springcloud service to shenyu admin
   * visit the service through shenyu
   
![image](https://github.com/apache/shenyu/assets/239952/929bb9d5-9021-4eb7-85f1-e86a15a86d25)
   
   
   
   ### Environment
   
   ```markdown
   ShenYu version(s):2.6.0
   nacos-discovery.version:2021.0.1.0
   springboot:2.7.17
   ```
   
   
   ### Debug logs
   
   2024-01-17 05:46:34 [reactor-http-epoll-3] ERROR 
org.apache.shenyu.plugin.logging.common.body.LoggingServerHttpResponse - get 
upstream ip error
   
   ### Anything else?
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to