Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[命令行工具] 除用户添加外所有功能均无法使用 #13

Closed
djkcyl opened this issue Feb 28, 2021 · 22 comments
Closed

[命令行工具] 除用户添加外所有功能均无法使用 #13

djkcyl opened this issue Feb 28, 2021 · 22 comments
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested school compatibility

Comments

@djkcyl
Copy link

djkcyl commented Feb 28, 2021

删除用户:
(node:17564) UnhandledPromiseRejectionWarning: ReferenceError: get is not defined at i.deleteUser (C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:14:1985) at C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:21:234 at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:17564) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:17564) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

配置学校:
(node:16216) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of null at c.schoolApi (C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:14:3281) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async c.init (C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:14:2330) at async C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:21:277 (node:16216) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:16216) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

签到:
(node:10616) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'login' of undefined at module.exports (C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:8:456) at t (C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:12:210) at C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:12:616 at Array.map (<anonymous>) at r.e.handleCookie (C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:12:561) at C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:18:220 at Object.parcelRequire.PTk1.../src/index (C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:18:266) at f (C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:3:468) at p (C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:3:544) at C:\Users\cyl\AppData\Roaming\npm\node_modules\@beetcb\cea\dist\cli.js:21:376 (node:10616) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:10616) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@djkcyl
Copy link
Author

djkcyl commented Feb 28, 2021

学校是湖北工业职业技术学院
https://hbgyzy.campusphere.net/

@beetcb
Copy link
Owner

beetcb commented Feb 28, 2021

是一个插件升级带来的报错 @djkcyl

@djkcyl
Copy link
Author

djkcyl commented Feb 28, 2021

是一个插件升级带来的报错 @djkcyl

哪有什么办法解决吗,给插件降级?

@beetcb
Copy link
Owner

beetcb commented Feb 28, 2021

我更新一下,发布一个新的版本,除 CLI 外其它的功能应该是完好的

@djkcyl
Copy link
Author

djkcyl commented Feb 28, 2021

好的

@beetcb
Copy link
Owner

beetcb commented Feb 28, 2021

好了 (~ ̄▽ ̄)~ @djkcyl 请安装这个版本 @beetcb/[email protected],如果再有问题就是学校的适配性问题,我会考虑适配

@djkcyl
Copy link
Author

djkcyl commented Feb 28, 2021

我去试试

@djkcyl
Copy link
Author

djkcyl commented Feb 28, 2021

用户删除可以用了,学校设置-s和sign依然不能使用

学校设置:
(node:15804) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of null
at c.schoolApi (C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:14:3284)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async c.init (C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:14:2332)
at async C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:21:277
(node:15804) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:15804) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

签到
(node:8648) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'login' of undefined
at module.exports (C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:8:456)
at t (C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:12:210)
at C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:12:616
at Array.map ()
at r.e.handleCookie (C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:12:561)
at C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:18:220
at Object.parcelRequire.PTk1.../src/index (C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:18:266)
at f (C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:3:468)
at p (C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:3:544)
at C:\Users\cyl\AppData\Roaming\npm\node_modules@beetcb\cea\dist\cli.js:21:376
(node:8648) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:8648) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@beetcb
Copy link
Owner

beetcb commented Feb 28, 2021

因为你们学校 id 区域竟然是
image
image
其它大多数学校都是英文简称 `(>﹏<)′

而且登录表单不一样,有时间我会兼容

@djkcyl
Copy link
Author

djkcyl commented Feb 28, 2021

所以说用数字id就没问题了吗

@djkcyl
Copy link
Author

djkcyl commented Feb 28, 2021

哦好的,谢谢啦

@beetcb
Copy link
Owner

beetcb commented Feb 28, 2021

@djkcyl 而且登录表单不一样,有时间我会兼容

@beetcb
Copy link
Owner

beetcb commented Feb 28, 2021

你看看我 README 那个最后感谢里 wisedu-unified-login-api 项目兼不兼容,它的适配性很好

@djkcyl
Copy link
Author

djkcyl commented Feb 28, 2021

我去试试

@djkcyl
Copy link
Author

djkcyl commented Feb 28, 2021

image

应该是不行吧

@beetcb
Copy link
Owner

beetcb commented Feb 28, 2021

试试这个 url,应该是可以的,我看了代码

@djkcyl
Copy link
Author

djkcyl commented Feb 28, 2021

image

@beetcb
Copy link
Owner

beetcb commented Feb 28, 2021

image

大概像这样,如果确实不行,有时间我会看看的,(你也可以试着爬一爬,看看有没有可能提个 PR)

@beetcb beetcb added bug Something isn't working help wanted Extra attention is needed question Further information is requested school compatibility labels Feb 28, 2021
@beetcb
Copy link
Owner

beetcb commented Feb 28, 2021

@djkcyl 各个学校不一样,导致这种爬虫类的开发是很杂的,适配性很低是正常的,不要气馁,多尝试 😂

@beetcb beetcb changed the title 除用户添加外所有功能均无法使用 [命令行工具]除用户添加外所有功能均无法使用 Mar 2, 2021
@beetcb beetcb changed the title [命令行工具]除用户添加外所有功能均无法使用 [命令行工具] 除用户添加外所有功能均无法使用 Mar 2, 2021
@beetcb
Copy link
Owner

beetcb commented Mar 21, 2021

@djkcyl @beetcb/[email protected] 支持了这种登录模式,先关掉这个 Issue (缺少回复)

@beetcb beetcb closed this as completed Mar 21, 2021
@djkcyl
Copy link
Author

djkcyl commented Mar 21, 2021

image
如果添加用户时信息为空则会导致这个问题

@beetcb
Copy link
Owner

beetcb commented Mar 21, 2021

可能本地配置比较乱,建议执行一次 cea rm all 重新配置,(因为这种问题估计也难复现 @djkcyl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested school compatibility
Projects
None yet
Development

No branches or pull requests

2 participants