I built a flask application using tigergraph as the db instance, it runs all good in my local environment. Within the docker container that i created, the connection always failed and said “Check your username or password. [Errno 111] Connection refused”.
pyTigerGraph==1.0.2
conn = tg.TigerGraphConnection(
host=“http://127.0.0.1”,
restppPort=“8080”,
gsPort=“14450”,
graphname=“Cp_CMDB”,
certPath=False,
username=“tigergraph”,
password=“tigergraph”,
)
print(conn)
conn.apiToken = conn.getToken(conn.createSecret())