无法使用 Neo4j db 启动 Rails 服务器,响应 coed 401 而不是 200 [英] Cannot start rails server with Neo4j db, response coed 401 instead of 200

查看:54
本文介绍了无法使用 Neo4j db 启动 Rails 服务器,响应 coed 401 而不是 200的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

知道如何解决这个问题吗?

Any clue how to fix this?

rails s -d
=> Booting WEBrick
=> Rails 4.2.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
/Users/levi/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/neo4j-core-4.0.5/lib/neo4j-server/resource.rb:33:in `handle_response_error': Expected response code 200 Error for request http://localhost:7474/db/data/, 401, 401 (Neo4j::Server::Resource::ServerException)
    from /Users/levi/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/neo4j-core-4.0.5/lib/neo4j-server/resource.rb:37:in `expect_response_code'

推荐答案

假设您使用 rake install neo4j 任务安装了 Neo4j,请通过将 Web 浏览器指向 来确保服务器已启动http://localhost:7474.如果它没有运行,您需要解决与服务器无法启动相关的问题.

Assuming you installed Neo4j using the rake install neo4j task, make sure the server has started by pointing a web browser to http://localhost:7474. If it isn't running, you'll want to troubleshoot issues related to a server failing to start.

如果您从 neo4j.com 下载 Neo4j 2.2.0 或在过去一两天内使用过 brew,则需要转到该管理页面一次更改密码,然后在应用程序中进行设置,或者您可以完全按照 How to disable Basic在 Neo4j 2.2.0-RC01 上进行身份验证.在我的测试和开发环境中,我总是在 Neo4j 2.2.0 中禁用身份验证.

If you downloaded Neo4j 2.2.0 from neo4j.com or used brew within the last day or two, you'll need to go to that admin page once to change the password, then set it in the app, OR you can disable auth entirely as described at How to disable Basic Auth on Neo4j 2.2.0-RC01. I always disable auth in Neo4j 2.2.0 in my test and dev environments.

这篇关于无法使用 Neo4j db 启动 Rails 服务器,响应 coed 401 而不是 200的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆