pydgraph icon indicating copy to clipboard operation
pydgraph copied to clipboard

Database not connected 'NoneType' object has no attribute 'txn'

Open romeshshil opened this issue 3 years ago • 0 comments

In [multi-tenancy](https://dgraph.io/docs/enterprise-features/multitenancy/) environments, PyDgraph provides a new method login_into_namespace(), which will allow the users to login to a specific namespace.
client_stub = pydgraph.DgraphClientStub('localhost:9080')
client = pydgraph.DgraphClient(client_stub)
// Login to namespace groot user of namespace 123
client.login_into_namespace("groot", "password", "123")

Get Error:

Exception Type: | AttributeError
Exception Value: 'NoneType' object has no attribute 'txn'

�

romeshshil avatar Mar 21 '22 10:03 romeshshil