Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

任务开启会报错RangeError: "length" is outside of buffer bounds #67

Open
LGXAK opened this issue Sep 12, 2024 · 1 comment
Open

Comments

@LGXAK
Copy link

LGXAK commented Sep 12, 2024

@put(':id/start')
@ApiOperation({ summary: '启动任务' })
@perm(permissions.START)
async start(@IdParam() id: number): Promise {
const task = await this.taskService.info(id)

await this.taskService.start(task)

}
开启任务后会报错
image

当我进行序列化的时候redis会报错
const serializedData = JSON.stringify({ id: task.id, service: task.service, args: task.data })
const job = await this.taskQueue.add(
serializedData,
{ jobId: task.id, removeOnComplete: true, removeOnFail: true, repeat },
)
image

@LGXAK
Copy link
Author

LGXAK commented Sep 12, 2024

https://stackoverflow.com/questions/78911536/rangeerror-err-buffer-out-of-bounds-length-is-outside-of-buffer-bounds-in-n
KMU_)K~AHH6%7{XYXXH_9CT
已找到问题点在哪里了,不能使用最新node22版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant