Nocobase 2.0.52版本登录

* 描述问题

<登录界面输入用户名密码后,当输入错误的信息提示用户名或者密码错误后,鼠标点击界面,界面就出现如下的信息Unhandled Rejection (AxiosError): Request failed with status code 401
settle
.nocobase/lib/core/settle.js:19:11
16 | if (!response.status || !validateStatus || validateStatus(response.status)) {
17 | resolve(response);
18 | } else {

19 | reject(new AxiosError(
| ^ 20 | 'Request failed with status code ’ + response.status,
21 | response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE,
22 | response.config,
View compiled
XMLHttpRequest.onloadend
.nocobase/lib/adapters/xhr.js:63:8
60 | request,
61 | };
62 |
63 | settle(
64 | function _resolve(value) {
65 | resolve(value);
66 | done();
View compiled
Axios._callee8$
.nocobase/lib/core/Axios.js:46:40
43 | if (err instanceof Error) {
44 | let dummy = {};
45 |
46 | Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
| ^ 47 |
48 | // slice off the Error: … line
49 | const stack = (() => {
View compiled →

* 运行环境

  • NocoBase 版本:
  • 数据库种类与版本:
  • 操作系统:
    -浏览器及版本
  • 部署方式:create-nocobase-app
  • Docker 镜像版本:
  • NodeJS 版本: ```
    Node 22


## 如何重现

<!-- 请尽可能详细地描述重现过程。 -->

## 预期行为

<!-- 清晰简明地描述您预期的结果。 -->

## 截图

<!-- 如果适用,请添加截图以帮助解释您的问题。 -->

## 日志
Unhandled Rejection (AxiosError): Request failed with status code 401
settle
.nocobase/lib/core/settle.js:19:11
  16 | if (!response.status || !validateStatus || validateStatus(response.status)) {
  17 |   resolve(response);
  18 | } else {
> 19 |   reject(new AxiosError(
     |         ^  20 |     'Request failed with status code ' + response.status,
  21 |     response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE,
  22 |     response.config,
View compiled
XMLHttpRequest.onloadend
.nocobase/lib/adapters/xhr.js:63:8
  60 |   request,
  61 | };
  62 | 
> 63 | settle(
  64 |   function _resolve(value) {
  65 |     resolve(value);
  66 |     done();
View compiled
Axios._callee8$
.nocobase/lib/core/Axios.js:46:40
  43 | if (err instanceof Error) {
  44 |   let dummy = {};
  45 | 
> 46 |   Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
     |                                  ^  47 | 
  48 |   // slice off the Error: ... line
  49 |   const stack = (() => {
View compiled
▼ 5 stack frames were expanded.
tryCatch
.nocobase/node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:45
Generator.<anonymous>
.nocobase/node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:133
Generator.throw
.nocobase/node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:74
asyncGeneratorStep
.nocobase/node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3
_throw
.nocobase/node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25
▲ 5 stack frames were expanded.
<!-- 如果是 API 错误,请提供相关的服务器日志。 -->

你好 ,请问NocoBase 的版本号是什么 ,报错截图说明下 。

版本是2.0.52的。我是把之前的1.9.13的数据导入到1.9.13后再升级到2.0.52的,用npx nocobase upgrade来升级的,截图如下:

npx nocobase upgrade 升级 ? 没有这个升级命令, 建议参考官网文档,使用对应部署方式的升级步骤