TigerGraph's Fullstack Course Sample – Getting Error Code 500

Using the sample code from this tutorial:
https://hhsu99.github.io/tg-fullstack-course/course

Which uses the Covid 19 sample graph, everything works fine up to the point of calling the API that fetches data from TigerGraph
I don’t get an error connecting and authenticating, but do get an error calling the installed query. This is the query that runs fine from TG Studio.
image

This is the Python code:

@app.get("/list_patients_infected_by/")
def readListPatient_Infected_By():
    gsql = conn.runInstalledQuery("list_patients_infected_by", {"p", "2000000205"})
    return gsql

And this is the result in FastAPI

Any idea where/how to trouble shoot this?

Thanks

@gpadvorac Can you run the built-in endpoint to list all queries? I want to verify that the query that you’re calling was installed (compiled and built as an endpoint) correctly.

Hi Jon,

This is using the free cloud account and I’m not sure what the correct syntax in the GSQL Shell is for that command. I tried several versions with no success:

0535d28_MyDomain_e3f41cb.i.tgcloud.io:9000/endpoints?builtin=true

But I did run “Install All Queries” from TG Studio and as you can see here, it’s installed

image

To be clear, in Python code I should be using the same credentials I use to login to my cloud account, right?

tgCreds