Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code-push login登录报错 #305

Open
w11h22j33 opened this issue Sep 28, 2020 · 1 comment
Open

code-push login登录报错 #305

w11h22j33 opened this issue Sep 28, 2020 · 1 comment

Comments

@w11h22j33
Copy link

w11h22j33 commented Sep 28, 2020

通过NPM安装成功后,启动code-push-server。
使用code-push-cli(CLI v3.0.0)登录,输入token后报错,提示:
[Error] Not Found

查看server日志,显示:
[2020-09-28T11:20:56.314] [ERROR] cps:app - { NotFoundError: Not Found
at /code-push-server/app.js:87:15
at Layer.handle [as handle_request] (/code-push-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/code-push-server/node_modules/express/lib/router/index.js:317:13)
at /code-push-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/code-push-server/node_modules/express/lib/router/index.js:335:12)
at next (/code-push-server/node_modules/express/lib/router/index.js:275:10)
at /code-push-server/node_modules/express/lib/router/index.js:635:15
at next (/code-push-server/node_modules/express/lib/router/index.js:260:14)
at Function.handle (/code-push-server/node_modules/express/lib/router/index.js:174:3)
at router (/code-push-server/node_modules/express/lib/router/index.js:47:12)
at Layer.handle [as handle_request] (/code-push-server/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/code-push-server/node_modules/express/lib/router/index.js:317:13)
at /code-push-server/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/code-push-server/node_modules/express/lib/router/index.js:335:12)
at next (/code-push-server/node_modules/express/lib/router/index.js:275:10)
at next (/code-push-server/node_modules/express/lib/router/route.js:127:14)
at next (/code-push-server/node_modules/express/lib/router/route.js:131:14)
at next (/code-push-server/node_modules/express/lib/router/route.js:131:14)
at next (/code-push-server/node_modules/express/lib/router/route.js:131:14)
at next (/code-push-server/node_modules/express/lib/router/route.js:131:14)
at next (/code-push-server/node_modules/express/lib/router/route.js:131:14)
at next (/code-push-server/node_modules/express/lib/router/route.js:131:14) message: 'Not Found', name: 'NotFoundError', status: 404 }
[2020-09-28T11:20:56.314] [INFO] http - ::ffff:IP - - "GET /user HTTP/1.1" 404 3402 "" "undefined"

@JinYuSha0
Copy link

我也遇到了
看了一下code-push-cli在一个月前升级到了3.0.0
用回2.1.9的版本问题解决
npm i [email protected] -g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants