[技术交流] 连接服务中心watch=true时失败

错误日志:

2018-10-15 11:28:24,066 [ERROR] watcher connect to service center server failed, microservice dba718d9cd3511e8969f0255ac105117, Websocket connection attempt returned HTTP status code 404 org.apache.servicecomb.serviceregistry.client.http.ServiceRegistryClientImpl.watchErrorHandler(ServiceRegistryClientImpl.java:688)

2018-10-15 11:28:24,067 [INFO] read exception event, message is :Websocket connection attempt returned HTTP status code 404 org.apache.servicecomb.serviceregistry.task.ServiceCenterTask.onExceptionEvent(ServiceCenterTask.java:71)



问题原因:

公有云通过api gateway访问服务中心,不能使用watch模式。watch模式只能够在物理多租,采用IP直连访问的情况下使用。