Max tries exceeded error [WinError 10061]

Hello all,

I am trying to connect to TG on premise instance through pytigergraph, but getting the below error. I am sharing the code i am running as well.

#conn = tg.TigerGraphConnection(host=hostName, username=userName, password=password, graphname=graphName,gsPort=gsPort, gsqlSecret=gsqlSecret)


print(conn)
print(conn.getToken(gsqlSecret))

Output:

<pyTigerGraph.pyTigerGraph.TigerGraphConnection object at 0x0000019CDB019700>
HTTPConnectionPool(host=’’, port=9000): Max retries exceeded with url: /requesttoken?secret= (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x0000019CDB16F140>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’))

@gowdaachhu Could you try this Python code to see if you still run into any issues: https://colab.research.google.com/drive/1vDLnyIY5YeED-EhqIuu7wzWIJ7aPnzPN?usp=sharing

Still getting the same error

ConnectionError: HTTPConnectionPool(host=‘XXX’, port=9000): Max retries exceeded with url: /requesttoken?secret=k144mnu9tki5gdk19a43jg70rfp5i0m3 (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x0000016A466E69F0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’))

I get the below error when i call getSchema.

ConnectTimeout: HTTPConnectionPool(host=‘XX’, port=14240): Max retries exceeded with url: /gsqlserver/gsql/schema?graph=MyGraph (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000016A46CB9CA0>, ‘Connection to scnnlapptgpoc.amer.dell.com timed out. (connect timeout=None)’))