Ok so i got the dgraph setup in an AWS test instance and ratel working fine connecting to it.
I wrote a simple python script and referred to the easiest example i can find
from pydgraph.client import DgraphClient
g_Host = โ13.250.197.28โ
def AddData () :
dg_client = DgraphClient(g_Host, 8080)
response = dg_client.query("""mutation
{
set
{
<alice> <name> \"Alice\" .
<greg> <name> \"Greg\" .
<alice> <follows> <greg> .
}
}
query
{
me(_xid_: alice)
{
follows
{
name _xid_
}
}
}
""")
print(response)
if name == โmainโ :
AddData()
โ> But it gave an error and i do not know how to proceed from here
grpc.framework.interfaces.face.face.AbortionError: AbortionError(code=StatusCode.UNAVAILABLE, details="")