I have a nestjs + prisma + postgres project, everything is good on local. It is deployed to production by docker, when run on production with real user, It usually got this issue, the log returned is
Invalid `this.menuRepository.findMany()` invocation in
/usr/src/app/src/wallpaper.menu/wallpaper.menu.repository.ts:27:38
24 const newSortOptions = sortOptions
25 ? [{ orderBy: 'page', order: 'asc' }, ...sortOptions]
26 : [{ orderBy: 'page', order: 'asc' }];
→ 27 return await this.menuRepository.findMany(
Error in connector: Error querying the database: FATAL: the database system is in recovery mode
PrismaClientUnknownRequestError:
Invalid `this.menuRepository.findMany()` invocation in
/usr/src/app/src/wallpaper.menu/wallpaper.menu.repository.ts:27:38
24 const newSortOptions = sortOptions
25 ? [{ orderBy: 'page', order: 'asc' }, ...sortOptions]
26 : [{ orderBy: 'page', order: 'asc' }];
→ 27 return await this.menuRepository.findMany(
Error in connector: Error querying the database: FATAL: the database system is in recovery mode
at $n.handleRequestError (/usr/src/app/node_modules/@prisma/client/runtime/library.js:121:7505)
at $n.handleAndLogRequestError (/usr/src/app/node_modules/@prisma/client/runtime/library.js:121:6623)
at $n.request (/usr/src/app/node_modules/@prisma/client/runtime/library.js:121:6307)
at async l (/usr/src/app/node_modules/@prisma/client/runtime/library.js:130:9633)
at async WallpaperMenuRepository.list (/usr/src/app/src/wallpaper.menu/wallpaper.menu.repository.ts:27:12)
at async WallpaperMenuService.list (/usr/src/app/src/wallpaper.menu/wallpaper.menu.service.ts:59:22)
at async WallpaperService.list (/usr/src/app/src/wallpaper/wallpaper.service.ts:15:22)
at async WallpaperController.findAll (/usr/src/app/src/wallpaper/wallpaper.controller.ts:22:12)```
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744852405a4597202.html
评论列表(0条)