Pytigergraph functions for On Prem Version requiring RESTPP.Factory.EnableAuth to be True

When running certain functions, such as conn.ingestDataset(dataset, getToken=config["getToken"]) , an error log is displayed to enable RESTPP.Factory.EnableAuth as true. However, setting it to true results in many on-premises functionalities not working properly. For example, queries do not run or install as expected.

Error log:
TigerGraphException Traceback (most recent call last)
Cell In[11], line 5
1 from pyTigerGraph.datasets import Datasets
3 dataset = Datasets(“Ethereum”)
----> 5 conn.ingestDataset(dataset, getToken=config[“getToken”])

File /opt/conda/lib/python3.9/site-packages/pyTigerGraph/, in pyTigerGraphDataset.ingestDataset(self, dataset, cleanup, getToken)
74 self.graphname =
75 if getToken:
—> 76 self.getToken(self.createSecret())
78 for resp in dataset.run_load_job(self):
79 stats = resp[0][“statistics”]

File /opt/conda/lib/python3.9/site-packages/pyTigerGraph/, in pyTigerGraphAuth.getToken(self, secret, setToken, lifetime)
266 if “Endpoint is not found from url = /requesttoken” in res[“message”]:
267 raise TigerGraphException(“REST++ authentication is not enabled, can’t generate token.”,
268 None)
→ 269 raise TigerGraphException(res[“message”], (res[“code”] if “code” in res else None))

TigerGraphException: (“Please run ‘gadmin config set RESTPP.Factory.EnableAuth true’ to enable this endpoint.”, ‘REST-1000’)