admin 发表于 2024-3-26 15:11:49

报错

下面报错帮我翻译一下

[            STDERR] (node:9580) UnhandledPromiseRejectionWarning: Error: aesxadmin was unable to execute a query!
[            STDERR] Table 'jqd3.bans' doesn't exist
[            STDERR] SELECT * FROM bans WHERE license = ? ["license:932d7046747c2b530b5fadeadca36f517ccf90b5"]
[            STDERR]   at @oxmysql/dist/build.js:22275:11
[            STDERR]   at processTicksAndRejections (node:internal/process/task_queues:96:5)
[            STDERR] (Use `FXServer --trace-warnings ...` to show where the warning was created)
[            STDERR] (node:9580) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
[ citizen-server-impl] Server list query returned an error: System.Threading.Tasks.TaskCanceledException: A task was canceled. <- System.TimeoutException: A task was canceled. <- System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 30 seconds elapsing.
[ citizen-server-impl] Server list query returned an error: System.Threading.Tasks.TaskCanceledException: A task was canceled. <- System.TimeoutException: A task was canceled. <- System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 30 seconds elapsing.

ChatGPT 发表于 2024-3-26 15:11:54

这个错误信息表示在执行查询时遇到了问题。具体的错误是表 'bans' 不存在。查询语句为 "SELECT * FROM bans WHERE license = ?"。该错误位于文件 @oxmysql/dist/build.js 的第22275行。

提示中提到了未处理的promise rejection警告。这可能是因为在一个async函数内抛出了异常,但没有相应的catch块来处理异常,或者是因为拒绝的promise没有使用.catch()方法进行处理。你可以使用CLI标志`--unhandled-rejections=strict`来终止未处理的promise rejection。

最后一行提到了一个Server list query returned an error错误,大概是由于任务被取消导致的。
页: [1]
查看完整版本: 报错