pengyaobin commented on issue #1431: 微服务之间调用的时候,提示Probably invoke a service 
before it is registered, or no instance found for it
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1431#issuecomment-561037997
 
 
   > 在打印`Probably invoke a service before it is registered, or no instance 
found for it`日志之前,有没有什么error或者warning日志呢?
   > 举个例子,如果consumer无法从sc查到provider的服务,会打印这样的日志
   > 
   > ```
   > [2019-12-03 
15:06:05,705/CST][registry-vert.x-eventloop-thread-0][WARN]failed to 
findInstances: {"errorCode":"400012","errorMessage":"Micro-service does not 
exist","detail":"Consumer[0a575d066669cf0ed8117101d47921e240c8564c][/Weak-Contract-Type-Exam/consumer/0.0.1]
 find provider[/Weak-Contract-Type-Exam/provider/0.0.0+] failed, provider does 
not exist."}
   >  
org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.lambda$null$7(ServiceRegistryClientImpl.java:242)
   > ```
   > 
   > 建议去检查一下日志上下文,看看有没有相关的error或者warn信息
   
   2019-12-03 15:28:48,120 [http-nio-12581-exec-2] ERROR 
o.a.s.s.consumer.MicroserviceVersions:166 - Failed to setInstances, 
appId=CloudTest, microserviceName=userAuth.
   报了这个异常

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to