Hello I am getting the following error
FileNotFoundError: [Errno 2] No such file or directory: ‘/tmp/my-cert.txt’
I am connecting via:
conn = TigerGraphConnection(
host=host,
graphname=graphname,
username=username,
password=password,
)
secret = my_secret
token = conn.getToken(secret)
secret_conn = TigerGraphConnection(
host=host,
graphname=graphname,
username=username,
password=password,
apiToken=token[0],
)
Has anyone seen this error before?
@emackie I’ve seen that issue on Windows PC’s before. When pyTigerGraph sets up your connection parameters it will fetch the certification from your server and persist it in the /tmp directory. A few people have run into a directory permissions issue not allowing the file to be stored. They ended up manually placing that file there to bypass the issue.
Posted a thread from another user that ran into the same issue.
https://dev.tigergraph.com/forum/t/tigergraph-python-connection-issue/2776
Thanks @Jon_Herke
So actually this FileNotFoundError comes when pyTigerGraph raises an exception for another FileNotFoundError for Tmp/.gsql/my-file.txt
I think you are right that it is an SSL error however I do not have admin rights on my machine. Is there a server-side solution?
In addition do you have any colour over why the windows code was working for me for a while and then not working (as far as I know our server credentials did not change)
So this “stopped” working becuase I added a .gsql() call whereas before I was only calling .runInstalledQuery. It seems only .gsql() is affected by this issue.