lbc97 commented on issue #2655: URL: https://github.com/apache/servicecomb-java-chassis/issues/2655#issuecomment-987793417
经验证:当一个微服务A的schema还没注册完时,另一个微服务B去调用A的任意接口(指注册上的和没注册上的)都会报如下错误 unexpected error operation=PRODUCER rest consumer.ConsumerController.sayHello, message=cause:InvocationTargetException,message:null;cause:IllegalStateException,message:Probably invoke a service before it is registered, or no instance found for it, appId=xxxxxxx, name=xxxxx, versionRule=xxxxxx. 验证过程: 在provider微服务项目中添加两个schema分别为provider1和provder2,然后在程序中打上断点进行调试,当控制台给出其中一个schema已经注册成功之后(控制台中有相应提示,也可以去微服务引擎页面查看相应的服务契约)启动consumer微服务项目 ,然后调用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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
