# LocalError: unknown service graph.Dgraph

**URL:** <https://discuss.dgraph.io/t/localerror-unknown-service-graph-dgraph/8204>\
**Category:** Dgraph Clients\
**Tags:** untagged, pydgraph\
**Created:** [April 11, 2017, 6:37am UTC](https://discuss.dgraph.io/t/localerror-unknown-service-graph-dgraph/8204 "2017-04-11T06:37:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [April 11, 2017, 6:37am UTC](https://discuss.dgraph.io/t/localerror-unknown-service-graph-dgraph/8204/1 "2017-04-11T06:37:59Z")

</div>

**Moved from GitHub [pydgraph/13](https://github.com/dgraph-io/pydgraph/issues/13)**

_Posted by_ [Aurora81](https://github.com/Aurora81):

I use the code bellow to query dgraph(VERSION=0.7.4) , then it fails.  
when use curl to query the same content, it’s OK.

```auto
In [1]: from pydgraph.client import DgraphClient
In [2]: pydgraph.client. __version__
Out[1]: '0.3.5'
In [3]: dg_client = DgraphClient('localhost', 8080)
In [4]: response = dg_client.query("""
        mutation
        {
            set
            {
                <alice> <name> \"Alice\" .
                <greg> <name> \"Greg\" .
                <alice> <follows> <greg> .
            }
        }
        """)

```

**The error is look like this:**

```auto
LocalError Traceback (most recent call last)
<ipython-input-14-22802b274334> in <module>()
      9 }
     10 }
---> 11 """)

/home/app/caizb/venv/local/lib/python2.7/site-packages/pydgraph/client.pyc in query(self, q, timeout)
     36 def query(self, q, timeout=None):
     37 request = graphresponse_pb2.Request(query=q)
---> 38 response = self.stub.Query(request, timeout)
     39 return response

/home/app/caizb/venv/local/lib/python2.7/site-packages/grpc/beta/_client_adaptations.pyc in __call__ (self, request, timeout, metadata, with_call, protocol_options)
    298 self._channel, self._group, self._method, timeout, with_call,
    299 protocol_options, metadata, self._metadata_transformer, request,
--> 300 self._request_serializer, self._response_deserializer)
    301
    302 def future(self, request, timeout, metadata=None, protocol_options=None):

/home/app/caizb/venv/local/lib/python2.7/site-packages/grpc/beta/_client_adaptations.pyc in _blocking_unary_unary(channel, group, method, timeout, with_call, protocol_options, metadata, metadata_transformer, request, request_serializer, response_deserializer)
    196 credentials=_credentials(protocol_options))
    197 except grpc.RpcError as rpc_error_call:
--> 198 raise _abortion_error(rpc_error_call)
    199
    200

LocalError: LocalError(code=StatusCode.UNIMPLEMENTED, details="unknown service graph.Dgraph")

```

---

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [April 11, 2017, 7:27am UTC](https://discuss.dgraph.io/t/localerror-unknown-service-graph-dgraph/8204/2 "2017-04-11T07:27:00Z")

</div>

[pawanrawal](https://github.com/pawanrawal) _commented_ :

Hi @Aurora81

The python client was contributed by the community members and hasn’t been updated since. We changed to location of the proto file, that might be an issue. I will work on fixing it so that it is able to do basic mutations and queries. In the meantime you could still use the HTTP interface. See [https://docs.dgraph.io](https://docs.dgraph.io).

---

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [April 11, 2017, 7:58am UTC](https://discuss.dgraph.io/t/localerror-unknown-service-graph-dgraph/8204/3 "2017-04-11T07:58:09Z")

</div>

[Aurora81](https://github.com/Aurora81) _commented_ :

Thanks @pawanrawal

The performance of HTTP interface is much lower than grpc interface, can you show me how to fix the issue.  
Thanks very much!

---

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [July 11, 2020, 4:25am UTC](https://discuss.dgraph.io/t/localerror-unknown-service-graph-dgraph/8204/4 "2020-07-11T04:25:31Z")

</div>

Closed on July 11, 2020, 4:25am UTC


