-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Describe the bug
While trying to connect TigerGraph cloud using pyTigerGraph.
Getting an HTTPError while running "conn.getSchema()"
Error:
HTTPError:401 Client Error: Unauthorized for url: [https://nccn-demo.i.tgcloud.io:443/gsqlserver/gsql/schema?graph=mygraph](https://nccn-demo.i.tgcloud.io/gsqlserver/gsql/schema?graph=mygraph)
Using Free tier instance. Version 3.7.0
To Reproduce
Steps to reproduce the behavior:
-
Was able to get the authtoken using the below code
graph = tg.TigerGraphConnection(host="https://nccn-demo.i.tgcloud.io", graphname="mygraph") authToken = graph.getToken(<secret>) authToken = authToken[0] -
Established the connection using the below code
conn = tg.TigerGraphConnection(host="https://nccn-demo.i.tgcloud.io", graphname="mygraph", apiToken=authToken) print(conn)
output: <pyTigerGraph.pyTigerGraph.TigerGraphConnection object at 0x7fd31a836090>
- While getting the schema using the below code
results = conn.getSchema() - See error
HTTPError: 401 Client Error: Unauthorized for url: [https://nccn-demo.i.tgcloud.io:443/gsqlserver/gsql/schema?graph=mygraph](https://nccn-demo.i.tgcloud.io/gsqlserver/gsql/schema?graph=mygraph)
Expected behavior
To get the schema that presents in the TigerGraph cloud db