@@ -236,7 +236,7 @@ def list_service_status(self) -> List[dict]:
236236 api_instance = gs_interactive .AdminServiceServiceManagementApi (api_client )
237237 response = api_instance .get_service_status ()
238238 if CLUSTER_TYPE == "HOSTS" :
239- host = 'localhost ' # for interactive deployed in hosts, we could not determine the public ip in container. So we let user to replace with the public ip.
239+ host = '127.0.0.1 ' # for interactive deployed in hosts, we could not determine the public ip in container. So we let user to replace with the public ip.
240240 if response .status == "Running" and response .graph is not None :
241241 g = response .graph .to_dict ()
242242 serving_graph_id = g ["id" ]
@@ -246,10 +246,11 @@ def list_service_status(self) -> List[dict]:
246246 status = {
247247 "status" : response .status ,
248248 "sdk_endpoints" : {
249- "cypher" : f"neo4j://{ host } :{ self ._get_mapped_port (response .bolt_port )} (Replace localhost with public ip if connecting from outside) " ,
250- "hqps" : f"http://{ host } :{ self ._get_mapped_port (response .hqps_port )} (Replace localhost with public ip if connecting from outside) " ,
251- "gremlin" : f"ws://{ host } :{ self ._get_mapped_port (response .gremlin_port )} /gremlin (Replace localhost with public ip if connecting from outside) " ,
249+ "cypher" : f"neo4j://{ host } :{ self ._get_mapped_port (response .bolt_port )} " ,
250+ "hqps" : f"http://{ host } :{ self ._get_mapped_port (response .hqps_port )} " ,
251+ "gremlin" : f"ws://{ host } :{ self ._get_mapped_port (response .gremlin_port )} /gremlin" ,
252252 },
253+ "info" : "Replace 127.0.0.1 with public ip if connecting from outside" ,
253254 "start_time" : service_start_time ,
254255 "graph_id" : g ["id" ],
255256 }
0 commit comments