-
Notifications
You must be signed in to change notification settings - Fork 28
Description
I use NocoBase v1.4.14, Docker deploy in CentOS 7.6.1810 x86_64(Py3.7.9). I add a token in API Token Panel months ago, set its expire days as "Never Expired", it works very well, until a few days ago, the API request suddenly return 401 http response code, and the platform system_error_log shows like down blow, and what I've done before, just when I found the error, reboot nginx which is the nocobase front proxy, and reboot the Nocobase Docker container, and it just not worked, so I add one more API Token to replace it, but I need know what happend, and why it show error:
{"level":"error","message":"Token is invalid","meta":{"err":"UnauthorizedError: Token is invalid\n at Object.throw (/app/nocobase/node_modules/koa/lib/context.js:97:11)\n at AuthManagerMiddleware (/app/nocobase/node_modules/@nocobase/auth/lib/auth-manager.js:104:25)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async validateFilterParams (/app/nocobase/node_modules/@nocobase/server/lib/middlewares/validate-filter-params.js:39:12)\n at async deleteRolesCache (/app/nocobase/node_modules/@nocobase/plugin-users/dist/server/server.js:181:7)\n at async blockChinaRegionList (/app/nocobase/node_modules/@nocobase/plugin-field-china-region/dist/server/index.js:56:9)\n at async handleFieldSourceMiddleware (/app/nocobase/node_modules/@nocobase/plugin-data-source-main/dist/server/server.js:372:7)\n at async mergeReverseFieldWhenSaveCollectionField (/app/nocobase/node_modules/@nocobase/plugin-data-source-main/dist/server/server.js:346:7)\n at async appendDataToRolesCheck (/app/nocobase/node_modules/@nocobase/plugin-data-source-manager/dist/server/plugin.js:421:7)\n at async setDataSourceListDefaultSort (/app/nocobase/node_modules/@nocobase/plugin-data-source-manager/dist/server/plugin.js:223:7)"},"module":"","submodule":"","method":"error-handler","app":"main","reqId":"4f6332b5-0489-483d-bf28-0304186cecaf","dataSourceKey":"main","timestamp":"2025-09-29 08:51:40"}