maxdemarzi / neography

A thin Ruby wrapper to the Neo4j Rest API
MIT License
603 stars 139 forks source link

@neo.get_root Neography::NeographyError: Neography::NeographyError #189

Closed rajeevkannav closed 9 years ago

rajeevkannav commented 10 years ago
2.0.0-p247 :002 > @neo
 => #<Neography::Rest:0x000000064775b0 @connection=#<Neography::Connection:0x000000064774e8 @protocol="http://", @server="localhost", @port=7474, @directory="", @cypher_path="/cypher", @gremlin_path="/ext/GremlinPlugin/graphdb/execute_script", @log_file="neography.log", @log_enabled=false, @slow_log_threshold=0, @max_threads=20, @parser=MultiJsonParser, @logger=nil, @proxy=nil, @max_execution_time={"max-execution-time"=>6000}, @user_agent={"User-Agent"=>"Neography/1.5.2"}, @authentication={}, @client=#<Excon::Connection:6476cc8 @data={:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>false, :debug_response=>false, :headers=>{"User-Agent"=>"excon/0.33.0"}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :persistent=>true, :read_timeout=>2000, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>2000, :host=>"localhost", :path=>"", :port=>7474, :query=>nil, :scheme=>"http", :user=>nil, :password=>nil} @socket_key="http://localhost:7474">>> 
2.0.0-p247 :003 > @neo.connection
 => #<Neography::Connection:0x000000064774e8 @protocol="http://", @server="localhost", @port=7474, @directory="", @cypher_path="/cypher", @gremlin_path="/ext/GremlinPlugin/graphdb/execute_script", @log_file="neography.log", @log_enabled=false, @slow_log_threshold=0, @max_threads=20, @parser=MultiJsonParser, @logger=nil, @proxy=nil, @max_execution_time={"max-execution-time"=>6000}, @user_agent={"User-Agent"=>"Neography/1.5.2"}, @authentication={}, @client=#<Excon::Connection:6476cc8 @data={:chunk_size=>1048576, :ciphers=>"HIGH:!SSLv2:!aNULL:!eNULL:!3DES", :connect_timeout=>60, :debug_request=>false, :debug_response=>false, :headers=>{"User-Agent"=>"excon/0.33.0"}, :idempotent=>false, :instrumentor_name=>"excon", :middlewares=>[Excon::Middleware::ResponseParser, Excon::Middleware::Expects, Excon::Middleware::Idempotent, Excon::Middleware::Instrumentor, Excon::Middleware::Mock], :mock=>false, :nonblock=>true, :omit_default_port=>false, :persistent=>true, :read_timeout=>2000, :retry_limit=>4, :ssl_verify_peer=>true, :tcp_nodelay=>false, :uri_parser=>URI, :write_timeout=>2000, :host=>"localhost", :path=>"", :port=>7474, :query=>nil, :scheme=>"http", :user=>nil, :password=>nil} @socket_key="http://localhost:7474">> 
2.0.0-p247 :004 > @neo.connection.get('/')
 => {"management"=>"http://localhost:7474/db/manage/", "data"=>"http://localhost:7474/db/data/"} 
2.0.0-p247 :005 > @neo.connection.get('/')["reference_node"]
 => nil 
2.0.0-p247 :006 > 

Hence I am getting Neography::NeographyError: Neography::NeographyError

My Development Stack

RubyGems Environment:
  - RUBYGEMS VERSION: 2.2.2
  - RUBY VERSION: 2.0.0 (2013-06-27 patchlevel 247) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/kannav/.rvm/gems/ruby-2.0.0-p247@banana
  - RUBY EXECUTABLE: /home/kannav/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
  - EXECUTABLE DIRECTORY: /home/kannav/.rvm/gems/ruby-2.0.0-p247@banana/bin
  - SPEC CACHE DIRECTORY: /home/kannav/.gem/specs
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/kannav/.rvm/gems/ruby-2.0.0-p247@banana
     - /home/kannav/.rvm/gems/ruby-2.0.0-p247@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gem" => "--no-ri --no-rdoc"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /home/kannav/.rvm/gems/ruby-2.0.0-p247@banana/bin
     - /home/kannav/.rvm/gems/ruby-2.0.0-p247@global/bin
     - /home/kannav/.rvm/rubies/ruby-2.0.0-p247/bin
     - /home/kannav/.rvm/bin
     - /home/kannav/.genymotion
     - /usr/local/heroku/bin
     - /home/kannav/.genymotion
     - /usr/local/heroku/bin
     - /usr/local/sbin
     - /usr/local/bin
     - /usr/sbin
     - /usr/bin
     - /sbin
     - /bin
     - /usr/games
     - /usr/local/games
     - /opt/adt-bundle-linux-x86_64-20131030/sdk/platform-tools
     - /opt/adt-bundle-linux-x86_64-20131030/sdk/tools
     - /opt/adt-bundle-linux-x86_64-20131030/sdk/platform-tools
     - /opt/adt-bundle-linux-x86_64-20131030/sdk/tools
maxdemarzi commented 9 years ago

Root node is dead in Neo4j 2.0+