postgresql - PrismaClientUnknownRequestError: "Error in connector: Error querying the database: db error: FATAL: the da

I have a nestjs + prisma + postgres project, everything is good on local. It is deployed to production

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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信