Avatar
论坛报错的日志
Bug反馈
134
1 个月前
language 复制代码
Argument `skip` is missing.
at Tn (./.output/server/node_modules/@prisma/client/runtime/library.js:115:6855)
at In.handleRequestError (./.output/server/node_modules/@prisma/client/runtime/library.js:122:6533)
at In.handleAndLogRequestError (./.output/server/node_modules/@prisma/client/runtime/library.js:122:6211)
at In.request (./.output/server/node_modules/@prisma/client/runtime/library.js:122:5919)
at async l (./.output/server/node_modules/@prisma/client/runtime/library.js:127:11167)
at async Object.handler (./.output/server/chunks/routes/api/post/list.post.mjs:65:15)
at async Object.handler (./.output/server/chunks/routes/api/version.post.mjs:3074:19)
at async toNodeHandle (./.output/server/chunks/routes/api/version.post.mjs:3340:7)
at async ufetch (./.output/server/chunks/routes/api/version.post.mjs:3712:17)
at async $fetchRaw2 (./.output/server/chunks/routes/api/version.post.mjs:3581:26)
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'length')
at ./.output/server/chunks/build/index-CPsDLcqE.mjs:167:32
at renderFnWithContext (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:401:13)
at renderSlot (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:2324:53)
at ./.output/server/chunks/build/server.mjs:10127:13
at renderFnWithContext (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:401:13)
at normalizeChildren (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5830:34)
at createBaseVNode (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5660:5)
at _createVNode (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5722:10)
at _sfc_ssrRender (./.output/server/chunks/build/server.mjs:10091:25)
at renderComponentSubTree (./.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:430:9)
[nuxt] [request error] [unhandled] [500]
Invalid `prisma.post.findMany()` invocation:

{
where: {
pinned: false
},
include: {
_count: {
select: {
comments: true
}
},
author: {
select: {
uid: true,
avatarUrl: true,
username: true,
role: true
}
},
tag: true,
comments: false,
fav: true,
lastCommentUser: true
},
orderBy: {
point: "desc"
},
take: undefined,
+ skip: Int
}

Argument `skip` is missing.
at Tn (./.output/server/node_modules/@prisma/client/runtime/library.js:115:6855)
at In.handleRequestError (./.output/server/node_modules/@prisma/client/runtime/library.js:122:6533)
at In.handleAndLogRequestError (./.output/server/node_modules/@prisma/client/runtime/library.js:122:6211)
at In.request (./.output/server/node_modules/@prisma/client/runtime/library.js:122:5919)
at async l (./.output/server/node_modules/@prisma/client/runtime/library.js:127:11167)
at async Object.handler (./.output/server/chunks/routes/api/post/list.post.mjs:65:15)
at async Object.handler (./.output/server/chunks/routes/api/version.post.mjs:3074:19)
at async toNodeHandle (./.output/server/chunks/routes/api/version.post.mjs:3340:7)
at async ufetch (./.output/server/chunks/routes/api/version.post.mjs:3712:17)
at async $fetchRaw2 (./.output/server/chunks/routes/api/version.post.mjs:3581:26)
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'length')
at ./.output/server/chunks/build/index-CPsDLcqE.mjs:167:32
at renderFnWithContext (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:401:13)
at renderSlot (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:2324:53)
at ./.output/server/chunks/build/server.mjs:10127:13
at renderFnWithContext (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:401:13)
at normalizeChildren (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5830:34)
at createBaseVNode (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5660:5)
at _createVNode (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5722:10)
at _sfc_ssrRender (./.output/server/chunks/build/server.mjs:10091:25)
at renderComponentSubTree (./.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:430:9)
[nuxt] [request error] [unhandled] [500]
Invalid `prisma.post.findMany()` invocation:

{
where: {
pinned: false
},
include: {
_count: {
select: {
comments: true
}
},
author: {
select: {
uid: true,
avatarUrl: true,
username: true,
role: true
}
},
tag: true,
comments: false,
fav: true,
lastCommentUser: true
},
orderBy: {
point: "desc"
},
take: undefined,
+ skip: Int
}

Argument `skip` is missing.
at Tn (./.output/server/node_modules/@prisma/client/runtime/library.js:115:6855)
at In.handleRequestError (./.output/server/node_modules/@prisma/client/runtime/library.js:122:6533)
at In.handleAndLogRequestError (./.output/server/node_modules/@prisma/client/runtime/library.js:122:6211)
at In.request (./.output/server/node_modules/@prisma/client/runtime/library.js:122:5919)
at async l (./.output/server/node_modules/@prisma/client/runtime/library.js:127:11167)
at async Object.handler (./.output/server/chunks/routes/api/post/list.post.mjs:65:15)
at async Object.handler (./.output/server/chunks/routes/api/version.post.mjs:3074:19)
at async toNodeHandle (./.output/server/chunks/routes/api/version.post.mjs:3340:7)
at async ufetch (./.output/server/chunks/routes/api/version.post.mjs:3712:17)
at async $fetchRaw2 (./.output/server/chunks/routes/api/version.post.mjs:3581:26)
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'length')
at ./.output/server/chunks/build/index-CPsDLcqE.mjs:167:32
at renderFnWithContext (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:401:13)
at renderSlot (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:2324:53)
at ./.output/server/chunks/build/server.mjs:10127:13
at renderFnWithContext (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:401:13)
at normalizeChildren (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5830:34)
at createBaseVNode (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5660:5)
at _createVNode (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5722:10)
at _sfc_ssrRender (./.output/server/chunks/build/server.mjs:10091:25)
at renderComponentSubTree (./.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:430:9)
[nuxt] [request error] [unhandled] [500]
Invalid `prisma.post.findMany()` invocation:

{
where: {
pinned: false
},
include: {
_count: {
select: {
comments: true
}
},
author: {
select: {
uid: true,
avatarUrl: true,
username: true,
role: true
}
},
tag: true,
comments: false,
fav: true,
lastCommentUser: true
},
orderBy: {
point: "desc"
},
take: undefined,
+ skip: Int
}

Argument `skip` is missing.
at Tn (./.output/server/node_modules/@prisma/client/runtime/library.js:115:6855)
at In.handleRequestError (./.output/server/node_modules/@prisma/client/runtime/library.js:122:6533)
at In.handleAndLogRequestError (./.output/server/node_modules/@prisma/client/runtime/library.js:122:6211)
at In.request (./.output/server/node_modules/@prisma/client/runtime/library.js:122:5919)
at async l (./.output/server/node_modules/@prisma/client/runtime/library.js:127:11167)
at async Object.handler (./.output/server/chunks/routes/api/post/list.post.mjs:65:15)
at async Object.handler (./.output/server/chunks/routes/api/version.post.mjs:3074:19)
at async toNodeHandle (./.output/server/chunks/routes/api/version.post.mjs:3340:7)
at async ufetch (./.output/server/chunks/routes/api/version.post.mjs:3712:17)
at async $fetchRaw2 (./.output/server/chunks/routes/api/version.post.mjs:3581:26)
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'length')
at ./.output/server/chunks/build/index-CPsDLcqE.mjs:167:32
at renderFnWithContext (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:401:13)
at renderSlot (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:2324:53)
at ./.output/server/chunks/build/server.mjs:10127:13
at renderFnWithContext (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:401:13)
at normalizeChildren (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5830:34)
at createBaseVNode (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5660:5)
at _createVNode (./.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js:5722:10)
at _sfc_ssrRender (./.output/server/chunks/build/server.mjs:10091:25)
at renderComponentSubTree (./.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js:430:9)

<--- Last few GCs --->

[66:0x7f5d01d72000] 84332158 ms: Mark-Compact 991.2 (1007.1) -> 988.0 (1005.6) MB, pooled: 0 MB, 353.76 / 0.04 ms (average mu = 0.210, current mu = 0.128) allocation failure; scavenge might not succeed
[66:0x7f5d01d72000] 84332586 ms: Mark-Compact 991.0 (1007.1) -> 988.4 (1009.1) MB, pooled: 1 MB, 377.22 / 0.03 ms (average mu = 0.165, current mu = 0.119) allocation failure; scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

Aborted (core dumped)
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "discussion", schema "public" at "postgres"

4 migrations found in prisma/migrations
Avatar
1 个月前
0
0

啥意思?你本地启动的吗?执行了npx prisma migrate dev了吗?

Avatar
jkjoy楼主
1 个月前
0
0

docker里的日志
@jerry #1

Avatar
jkjoy楼主
1 个月前
0
0

重启之前的

Avatar
jkjoy楼主
1 个月前
0
0

@jerry #1
我测试了三个VPS 使用docker都会自动停止运行...

Avatar
1 个月前
0
0

@jkjoy #4 看日志是内存不足导致的报错,如果你能稳定重现,操作步骤发出来,如果不能,只有等我碰到了才能看看.

上方日志里提示是查询帖子时分页相关的参数不知为何没有了.