未找到mongoDB设置,不用云开发接口报错,且报错如下
Opened this issue · 0 comments
req start path = /api/question/list/recommend, clientIp = ::1, params = {"size":12}
req error path = /api/question/list/recommend, clientIp = ::1, params = {"size":12} MyError: 未登录
at getLoginUser (D:\code\mianshiya-public\server\src\service\user\userService.js:17:11)
at exports.main (D:\code\mianshiya-public\server\src\service\question\listRecommendQuestions\index.js:17:29)
at handler (D:\code\mianshiya-public\server\src\server.js:97:24)
at Layer.handle [as handle_request] (D:\code\mianshiya-public\server\node_modules\express\lib\router\layer.js:95:5)
at next (D:\code\mianshiya-public\server\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (D:\code\mianshiya-public\server\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (D:\code\mianshiya-public\server\node_modules\express\lib\router\layer.js:95:5)
at D:\code\mianshiya-public\server\node_modules\express\lib\router\index.js:281:22
at Function.process_params (D:\code\mianshiya-public\server\node_modules\express\lib\router\index.js:341:12)
at next (D:\code\mianshiya-public\server\node_modules\express\lib\router\index.js:275:10) {
code: 401
}
req start path = /api/user/list/rank, clientIp = ::1, params = {"cycle":1,"countDate":"2022-03-01","pageSize":3}
req error path = /api/user/list/rank, clientIp = ::1, params = {"cycle":1,"countDate":"2022-03-01","pageSize":3} TcbError: secret id error
at Object.exports.E (D:\code\mianshiya-public\server\node_modules@cloudbase\node-sdk\lib\utils\utils.js:29:12)
at processReturn (D:\code\mianshiya-public\server\node_modules@cloudbase\node-sdk\lib\utils\utils.js:67:19)
at Object.exports.default (D:\code\mianshiya-public\server\node_modules@cloudbase\node-sdk\lib\utils\httpRequest.js:377:20)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Query.get (D:\code\mianshiya-public\server\node_modules@cloudbase\database\dist\commonjs\query.js:72:21)
at async exports.main (D:\code\mianshiya-public\server\src\service\user\listUserCycleRank\index.js:20:25)
at async handler (D:\code\mianshiya-public\server\src\server.js:97:18) {
code: 'SIGN_PARAM_INVALID',