vesoft-inc / nebula-python

Client API of Nebula Graph in Python
194 stars 76 forks source link

raise RuntimeError( RuntimeError: The services status exception: [services: ('127.0.0.1', 9669), status: BAD] #205

Closed SaqlainHussainShah closed 1 year ago

SaqlainHussainShah commented 2 years ago

Nebula services are running [INFO] nebula-metad: Running as 49784, Listening on 9559 [INFO] nebula-graphd: Running as 49847, Listening on 9669 [INFO] nebula-storaged: Running as 49873, Listening on 9779 However the following code to connect to nebula graph as mentioned on github page `from nebula3.gclient.net import ConnectionPool from nebula3.Config import Config

define a config

config = Config() config.max_connection_pool_size = 10

init connection pool

connection_pool = ConnectionPool()

if the given servers are ok, return true, else return false

ok = connection_pool.init([('127.0.0.1', 9669)], config)`

gives

raise RuntimeError( RuntimeError: The services status exception: [services: ('127.0.0.1', 9669), status: BAD]

SaqlainHussainShah commented 2 years ago

Further

getting

[
[2022-04-07 10:10:28,330] WARNING  [ConnectionPool.py:203]:Connect 127.0.0.1:9669 failed: Method name verifyClientVersion not found
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/saqlain.hussain@ebryx.com/.local/lib/python3.8/site-packages/nebula2/gclient/net/ConnectionPool.py", line 77, in init
    raise RuntimeError('The services status exception: {}'.format(
RuntimeError: The services status exception: [services: ('127.0.0.1', 9669), status: BAD]
](url)
Aiee commented 2 years ago

Hi, It seems you are connecting the Nebula service with an incompatible python client. Please make sure the versions match.