wulangcode commented on issue #4160:
URL: https://github.com/apache/shenyu/issues/4160#issuecomment-1310480664

   update `shneyu-amdin`  application.yml
   ```
   shenyu:
     register:
       registerType: zookeeper #http #zookeeper #etcd #nacos #consul
   ```
   start `ShenyuTestHttpApplication`,start log output
   ```
   2022-11-10 23:28:18.733 ERROR 26610 --- [or_consumer_-18] 
o.a.s.r.client.http.utils.RegisterUtils  : metadata client register error: 
{"appName":"http","contextPath":"/http","path":"/http/test/**","rpcType":"http","serviceName":"org.apache.shenyu.examples.http.controller.HttpTestController","ruleName":"/http/test/**","enabled":true,"pluginNames":[],"registerMetaData":true,"timeMillis":1668094091444,"addPrefixed":false}
 
   ```
   
   I hope the output is a clearer log, so that I can find the problem when 
debugging
   
   ```
   2022-11-10 23:31:35.953 ERROR 26882 --- [or_consumer_-19] 
o.a.s.r.client.http.utils.RegisterUtils  : metadata client register error 
result: {"timestamp":"2022-11-10T15:31:35.941+00:00","status":404,"error":"Not 
Found","path":"/shenyu-client/register-metadata"} 
parameter:{"appName":"http","contextPath":"/http","path":"/http/oauth/oauth","rpcType":"http","serviceName":"org.apache.shenyu.examples.http.controller.OauthController","methodName":"testCode","ruleName":"/http/oauth/oauth","enabled":true,"pluginNames":[],"registerMetaData":true,"timeMillis":1668094295770,"addPrefixed":false}
   ```
   
   RegisterUtils#doRegister(java.lang.String, java.lang.String, 
java.lang.String, java.lang.String)
   ```
   LOGGER.error("{} client register error result: {} parameter:{}", type, 
result, json);
   ```
    
   


-- 
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