Unauthorized error

Hi team
i m using self-hosted tiger graph to get the hands-on tiger graph copilot
but i’m getting below error while authenticating through pytigergraph

401 Client Error: Unauthorized for url: http://localhost:14240/gsqlserver/gsql/file

graph = TigerGraphConnection(host="http://localhost", graphname="SupplyChain")

authToken = graph.getToken("7v931tcsrtsbeiiofrqujg60khgjufps") #secret generated in admin portal.

authToken = authToken[0]

conn = TigerGraphConnection(host="http://localhost", graphname="SupplyChain",

                                    username="tigergraph", password="tigergraph",

                                    restppPort="9000", gsqlVersion="",

                                    version="", apiToken=authToken, useCert=True,

                                    certPath=None, debug=False, sslPort="443", gcp=False, gsPort=14240)

print(conn.gsql("ls"))

Tigergraph version is 3.10.1
pytigergraph version is 1.6.1
Restpp is also enabled

Please guide