arangoml / networkx-adapter

The NetworkX adapter for ArangoDB
Apache License 2.0
24 stars 8 forks source link

Not able to connect to an ADB server with self sign certificate #67

Closed pedrocassalpacheco closed 2 years ago

pedrocassalpacheco commented 2 years ago

rest_connection = { "hostname": "***", "protocol": "https", "port": 8529, "username": "root", "password": "**", "dbName": "**" } adbnx_adapter = ADBNX_Adapter(rest_connection) nx_fraud_graph = adbnx_adapter.arangodb_graph_to_networkx("RSNac")

WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)'))': /_db/poc-telefonica/_api/gharial/RSNac/vertex Connecting to [https://***]() WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)'))': /_db/poc-telefonica/_api/gharial/RSNac/vertex WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)'))': /_db/poc-telefonica/_api/gharial/RSNac/vertex WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)'))': /_db/poc-telefonica/_api/gharial/RSNac/vertex WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)'))': /_db/poc-telefonica/_api/gharial/RSNac/vertex WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)'))': /_db/poc-telefonica/_api/gharial/RSNac/vertex WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)'))': /_db/poc-telefonica/_api/gharial/RSNac/vertex WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)'))': /_db/poc-telefonica/_api/gharial/RSNac/vertex WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)'))': /_db/poc-telefonica/_api/gharial/RSNac/vertex

ConnectionAbortedError Traceback (most recent call last)

in 8 } 9 adbnx_adapter = ADBNX_Adapter(rest_connection) ---> 10 nx_fraud_graph = adbnx_adapter.arangodb_graph_to_networkx("RSNac") /opt/anaconda3/lib/python3.8/site-packages/adbnx_adapter/adapter.py in arangodb_graph_to_networkx(self, name, **query_options) 172 """ 173 graph = self.__db.graph(name) --> 174 v_cols = graph.vertex_collections() 175 e_cols = {col["edge_collection"] for col in graph.edge_definitions()} 176 /opt/anaconda3/lib/python3.8/site-packages/arango/graph.py in vertex_collections(self) 124 return sorted(set(resp.body["collections"])) 125 --> 126 return self._execute(request, response_handler) 127 128 def vertex_collection(self, name: str) -> VertexCollection: /opt/anaconda3/lib/python3.8/site-packages/arango/api.py in _execute(self, request, response_handler) 72 :return: API execution result. 73 """ ---> 74 return self._executor.execute(request, response_handler) /opt/anaconda3/lib/python3.8/site-packages/arango/executor.py in execute(self, request, response_handler) 62 :return: API execution result. 63 """ ---> 64 resp = self._conn.send_request(request) 65 return response_handler(resp) 66 /opt/anaconda3/lib/python3.8/site-packages/arango/connection.py in send_request(self, request) 271 """ 272 host_index = self._host_resolver.get_host_index() --> 273 return self.process_request(host_index, request, auth=self._auth) 274 275 /opt/anaconda3/lib/python3.8/site-packages/arango/connection.py in process_request(self, host_index, request, auth) 150 tries += 1 151 --> 152 raise ConnectionAbortedError( 153 f"Can't connect to host(s) within limit ({self._host_resolver.max_tries})" 154 ) ConnectionAbortedError: Can't connect to host(s) within limit (3)
pedrocassalpacheco commented 2 years ago

Please ignore this