Heroku PR App 无法连接到 GrapheneDB

Heroku PR App can't connect to GrapheneDB

我刚刚在 Heroku 中创建了一个新的 PR 应用程序,并添加了 GrapheneDB。

我在日志中看到以下内容:

2018-05-18T20:11:52.702973+00:00 app[web.1]: neo4j.exceptions.ProtocolError: Connection to ('ip', 24786) closed without handshake response
2018-05-18T20:11:52.704465+00:00 app[web.1]: 2018-05-18 20:11:52,704 INFO     ~~ [CONNECT] ('ip', 24786)
2018-05-18T20:11:52.705999+00:00 app[web.1]: 2018-05-18 20:11:52,705 INFO     C: [HANDSHAKE] 0x6060B017 [1, 0, 0, 0]
2018-05-18T20:11:52.707922+00:00 app[web.1]: 2018-05-18 20:11:52,707 ERROR    S: [CLOSE]
2018-05-18T20:11:52.710745+00:00 app[web.1]: 2018-05-18 20:11:52,708 ERROR    Connection to ('ip', 24786) closed without handshake response

到目前为止我有:

我是不是漏掉了什么?

环境:

Driver Python代码:

from django.conf import settings
from django.utils.functional import SimpleLazyObject

from neo4j.v1 import GraphDatabase, basic_auth, TRUST_ON_FIRST_USE


def get_driver():
    return GraphDatabase.driver(
        settings.NEO4J_BOLT_URL,
        auth=basic_auth(settings.NEO4J_USERNAME, settings.NEO4J_PASSWORD),
        encrypted=False,
        trust=TRUST_ON_FIRST_USE,
    )


driver = SimpleLazyObject(get_driver)

只是为了跟进。事实证明 TRUST_ON_FIRST_USE 不适用于 GrapheneDB。 TRUST_ON_FIRST_USE 现在也已弃用。

删除它允许连接到 Neo4j 工作。