前置条件
系统信息
- 外部访问地址: https://cola0908.top
- 启动时间: 2026-03-21 08:04
- 版本: 2.23.1
- 构建时间: 2026-03-17 21:47
- Git Commit: f0a39fd
- Java: IBM Semeru Runtime Open Edition / 21.0.10+7-LTS
- 数据库: MySQL Community Server - GPL / 8.4.8
- 操作系统: Linux / 6.12.38+deb13-amd64
- 已激活主题: microimmersion 1.4.2
- 已启动插件:
使用的哪种方式运行?
Docker
发生了什么?
在Halo后台执行删除文章/页面/插件等操作是会返回400报错
具体报错内容:
Failed to load resource: the server responded with a status of 400 () /apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 () /apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 () /apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 () /apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 () components.af854b66.js:1 Failed to execute onConfirm: decode: "ERR_BAD_REQUEST"config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}message: "Request failed with status code 400"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: true, upload: XMLHttpRequestUpload, …}response: {data: '', status: 400, statusText: '', headers: r, config: {…}, …}status: 400stack: "AxiosError: Request failed with status code 400\n at Xe (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:32059)\n at XMLHttpRequest.y (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:36898)\n at e.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:49272)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3448)\n at Generator.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:4779)\n at Generator.throw (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3858)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:9996)\n at s (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:10235)"[[Prototype]]: Error c @ components.af854b66.js:1 overview:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received /apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 () components.af854b66.js:1 Failed to execute onConfirm: decode: "ERR_BAD_REQUEST"config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}message: "Request failed with status code 400"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: true, upload: XMLHttpRequestUpload, …}response: {data: '', status: 400, statusText: '', headers: r, config: {…}, …}status: 400stack: "AxiosError: Request failed with status code 400\n at Xe (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:32059)\n at XMLHttpRequest.y (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:36898)\n at e.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:49272)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3448)\n at Generator.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:4779)\n at Generator.throw (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3858)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:9996)\n at s (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:10235)"[[Prototype]]: Error c @ components.af854b66.js:1
复现步骤
1.打开Halo后台
2.点击文章/页面/插件
3.随便删除一个文章/页面/插件
4.报错返回400
相关日志输出
docker无error日志,浏览器控制台报错:
Failed to load resource: the server responded with a status of 400 ()
/apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 ()
/apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 ()
/apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 ()
/apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 ()
components.af854b66.js:1 Failed to execute onConfirm: decode: "ERR_BAD_REQUEST"config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}message: "Request failed with status code 400"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: true, upload: XMLHttpRequestUpload, …}response: {data: '', status: 400, statusText: '', headers: r, config: {…}, …}status: 400stack: "AxiosError: Request failed with status code 400\n at Xe (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:32059)\n at XMLHttpRequest.y (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:36898)\n at e.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:49272)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3448)\n at Generator.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:4779)\n at Generator.throw (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3858)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:9996)\n at s (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:10235)"[[Prototype]]: Error
c @ components.af854b66.js:1
overview:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
/apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 ()
components.af854b66.js:1 Failed to execute onConfirm: decode: "ERR_BAD_REQUEST"config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}message: "Request failed with status code 400"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: true, upload: XMLHttpRequestUpload, …}response: {data: '', status: 400, statusText: '', headers: r, config: {…}, …}status: 400stack: "AxiosError: Request failed with status code 400\n at Xe (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:32059)\n at XMLHttpRequest.y (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:36898)\n at e.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:49272)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3448)\n at Generator.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:4779)\n at Generator.throw (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3858)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:9996)\n at s (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:10235)"[[Prototype]]: Error
c @ components.af854b66.js:1
附加信息
前置条件
系统信息
使用的哪种方式运行?
Docker
发生了什么?
在Halo后台执行删除文章/页面/插件等操作是会返回400报错
具体报错内容:
Failed to load resource: the server responded with a status of 400 () /apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 () /apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 () /apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 () /apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 () components.af854b66.js:1 Failed to execute onConfirm: decode: "ERR_BAD_REQUEST"config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}message: "Request failed with status code 400"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: true, upload: XMLHttpRequestUpload, …}response: {data: '', status: 400, statusText: '', headers: r, config: {…}, …}status: 400stack: "AxiosError: Request failed with status code 400\n at Xe (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:32059)\n at XMLHttpRequest.y (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:36898)\n at e.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:49272)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3448)\n at Generator.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:4779)\n at Generator.throw (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3858)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:9996)\n at s (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:10235)"[[Prototype]]: Error c @ components.af854b66.js:1 overview:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received /apis/content.halo.run/v1alpha1/singlepages/019cf6be-35d2-756c-bcfe-ad233982ccd6:1 Failed to load resource: the server responded with a status of 400 () components.af854b66.js:1 Failed to execute onConfirm: decode: "ERR_BAD_REQUEST"config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}message: "Request failed with status code 400"name: "AxiosError"request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: true, upload: XMLHttpRequestUpload, …}response: {data: '', status: 400, statusText: '', headers: r, config: {…}, …}status: 400stack: "AxiosError: Request failed with status code 400\n at Xe (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:32059)\n at XMLHttpRequest.y (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:36898)\n at e.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:49272)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3448)\n at Generator.<anonymous> (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:4779)\n at Generator.throw (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:3858)\n at p (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:9996)\n at s (https://cola0908.top/console/assets/axios/axios.9231872f.js:2:10235)"[[Prototype]]: Error c @ components.af854b66.js:1复现步骤
1.打开Halo后台
2.点击文章/页面/插件
3.随便删除一个文章/页面/插件
4.报错返回400
相关日志输出
附加信息