Open cspalevic opened 3 years ago
We get this error if neo4j db is not available
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"code": "ServiceUnavailable",
"name": "Neo4jError",
"stacktrace": [
"Neo4jError: Could not perform discovery. No routing servers available. Known routing table: RoutingTable[database=default database, expirationTime=0, currentTime=1637200549849, routers=[], readers=[], writers=[]]",
"",
" at captureStacktrace (/home/cedomir/Workspace/projects/budgeter-api/src/node_modules/neo4j-driver-core/lib/result.js:239:17)",
" at new Result (/home/cedomir/Workspace/projects/budgeter-api/src/node_modules/neo4j-driver-core/lib/result.js:59:23)",
" at Session._run (/home/cedomir/Workspace/projects/budgeter-api/src/node_modules/neo4j-driver-core/lib/session.js:165:16)",
" at Session.run (/home/cedomir/Workspace/projects/budgeter-api/src/node_modules/neo4j-driver-core/lib/session.js:131:21)",
" at NeoGraphQueries.find (/home/cedomir/Workspace/projects/budgeter-api/src/services/neo4j/graph.js:104:36)",
" at getPayments (/home/cedomir/Workspace/projects/budgeter-api/src/controllers/graphql/processors/payments.js:48:47)",
" at /home/cedomir/Workspace/projects/budgeter-api/src/controllers/graphql/query.js:23:43",
" at /home/cedomir/Workspace/projects/budgeter-api/src/controllers/graphql/query.js:9:14",
" at field.resolve (/home/cedomir/Workspace/projects/budgeter-api/src/node_modules/apollo-server-core/dist/utils/schemaInstrumentation.js:52:26)",
" at resolveField (/home/cedomir/Workspace/projects/budgeter-api/src/node_modules/graphql/execution/execute.js:464:18)"
]
}
It will also be a good idea to log the exact queries we are running