at Commander._RedisClient_sendCommand (/app/node_modules/@redis/client/dist/lib/client/index.js:493:31)
at Commander.commandsExecutor (/app/node_modules/@redis/client/dist/lib/client/index.js:188:154)
at BaseClass.<computed> [as get] (/app/node_modules/@redis/client/dist/lib/commander.js:8:29)
at Object.getCache (/app/utils/cacheControl.js:30:28)
at Object.getAllCourse (/app/controllers/course.controller.js:19:53)
at preHandlerCallback (/app/node_modules/fastify/lib/handleRequest.js:137:37)
at validationCompleted (/app/node_modules/fastify/lib/handleRequest.js:121:5)
at preValidationCallback (/app/node_modules/fastify/lib/handleRequest.js:98:5)
at handler (/app/node_modules/fastify/lib/handleRequest.js:75:7)
at handleRequest (/app/node_modules/fastify/lib/handleRequest.js:24:5)
SyntaxError: Unexpected token E in JSON at position 0
at JSON.parse (<anonymous>)
at Object.getAllCourse (/app/controllers/course.controller.js:22:47)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
{"level":30,"time":1698376446728,"pid":1,"hostname":"7cd23d60372b","reqId":"req-3","res":{"statusCode":400},"responseTime":4.061120003461838,"msg":"request completed"}
Такая ошибка выходит
Через CLI соединение с базой работает?
Обсуждают сегодня