Skip to content

HttpError While getSchema #62

@kkarthikvk

Description

@kkarthikvk

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:

  1. 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]

  2. 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>

  1. While getting the schema using the below code
    results = conn.getSchema()
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions