Skip to content

neo4j connection fails

3:01:21 PM - error:  message=No write operations are allowed directly on this database. Writes must pass through the leader. The role of this server is: FOLLOWER, stack=
Neo4jError: No write operations are allowed directly on this database. Writes must pass through the leader. The role of this server is: FOLLOWER

    at captureStacktrace (/usr/local/app/node_modules/neo4j-driver/lib/v1/result.js:199:15)
    at new Result (/usr/local/app/node_modules/neo4j-driver/lib/v1/result.js:72:19)
    at Session._run (/usr/local/app/node_modules/neo4j-driver/lib/v1/session.js:116:14)
    at Session.run (/usr/local/app/node_modules/neo4j-driver/lib/v1/session.js:95:19)
    at Neo4jStreamWriter.<anonymous> (/usr/local/app/src/neo4j-stream-writer.ts:41:26)
    at Generator.next (<anonymous>)
    at /usr/local/app/dist/neo4j-stream-writer.js:15:71
    at new Promise (<anonymous>)
    at __awaiter (/usr/local/app/dist/neo4j-stream-writer.js:11:12)
    at Neo4jStreamWriter._write (/usr/local/app/dist/neo4j-stream-writer.js:38:16)
    at Timeout.setTimeout (/usr/local/app/src/neo4j-stream-writer.ts:54:14)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
    at listOnTimeout (timers.js:263:5)
    at Timer.processTimers (timers.js:223:10), code=Neo.ClientError.Cluster.NotALeader, name=Neo4jError
3:01:21 PM - error: fromhttps://search.ortsnamen.ch/api/toponyms/309126743/