Closed StringKe closed 5 years ago
还有你的 pm2 support 需要在目录下存在 logs 文件夹 不然得需要运行两次 pm2 start (第一次) 创建了 logs 文件夹无法写入错误文件 导致报错
这里的参数 jar 在添加账号后重新启用账号(密码错误的那种) jar 为 undefined 引发报错
Aug 02 2019 09:53:20 : 22110001 Token已失效
Aug 02 2019 09:53:20 : 22110001 验证码错误
(node:18314) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'getCookies' of undefined
at Tools.getCookie (/root/bilive_client/build/lib/tools.js:73:29)
at Online._onlineHeart (/root/bilive_client/build/online.js:84:49)
at Online._heartLoop (/root/bilive_client/build/online.js:70:38)
at Online.Start (/root/bilive_client/build/online.js:46:14)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async WebAPI.wsSetUserData (/root/bilive_client/build/webapi.js:458:36)
at async WebAPI._processHttp (/root/bilive_client/build/webapi.js:140:34)
at async /root/bilive_client/build/webapi.js:56:30
(node:18314) 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(). (rejection id: 6)
主分支的 Start 方法好像已经做处理了
因为沙雕微软把我的邮箱限制了…之前的邮件发送不出去 关于PM2的日志问题,我在npm run build里整合了clean的命令,里面添加了清理并创建logs文件夹的方法,应该能解决第一次start报错的问题 jar为undefined的报错问题我不是很懂,如果重新启用一个密码错误的账号的话应该会在getOnlineInfo()那里就被拦了下来;这个报错我有一个想法,输出验证码错误后没有停止发送心跳包,但也不是很符合你‘重新启用账号‘的描述
发送自 Windows 11
发件人: StringKe notifications@github.com 发送时间: Friday, August 2, 2019 10:21:41 AM 收件人: Vector000/bilive_client bilive_client@noreply.github.com 抄送: Vector000 victorguo23@hotmail.com; Mention mention@noreply.github.com 主题: Re: [Vector000/bilive_client] Web Api 支持 (#44)
主分支的 Start 方法好像已经做处理了
― You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Vector000/bilive_client/issues/44?email_source=notifications&email_token=AH6IONG4UZ73FSPD5ATPIPDQCOK3LA5CNFSM4IHY4HWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3MMIDQ#issuecomment-517522446, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AH6IONHCPHIBPPPCRNJ72YDQCOK3LANCNFSM4IHY4HWA.
插件serverChan 用户通知的触发方法是什么?
应该是tools.emit一个’systemMSG’或者‘SCMSG’事件,区别在于’systemMSG’会绑定一个Log(),会生成日志;而’SCMSG’不会
发送自 Windows 11
发件人: StringKe notifications@github.com 发送时间: Monday, August 5, 2019 4:31:35 PM 收件人: Vector000/bilive_client bilive_client@noreply.github.com 抄送: Vector000 victorguo23@hotmail.com; Mention mention@noreply.github.com 主题: Re: [Vector000/bilive_client] Web Api 支持 (#44)
插件serverChan 用户通知的触发方法是什么?
― You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Vector000/bilive_client/issues/44?email_source=notifications&email_token=AH6IONBGCRRQLLJFH5XRZDDQC7QOPA5CNFSM4IHY4HWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3RC3EY#issuecomment-518139283, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AH6IONCFUQBZMI3G5APSLYLQC7QOPANCNFSM4IHY4HWA.
需要添加一下包
替换文件 webapi.ts 并重新编译