cURL 命令 - Neo4j

2024-03-03

我在 Neo4j 中使用 cURL 作为 HTTP 客户端时遇到问题。 当我写这个命令时:curl http://localhost:7474/db/data/(或任何网址,例如http://localhost:7474/db/data/node/) Then我得到 JSON 格式的结果:

{
  "errors": [
    {
      "message": "No authorization token supplied.",
      "code": "Neo.ClientError.Security.AuthorizationFailed"
    }
  ],
  "authentication": "http://localhost:7474/authentication"
}

看来您的服务器上启用了身份验证插件。https://github.com/neo4j-contrib/authentication-extension https://github.com/neo4j-contrib/authentication-extension

你应该尝试以下形式

curl --user username:password http://localhost:7474/db/data/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

cURL 命令 - Neo4j 的相关文章

随机推荐