{"action":"created","issue":{"url":"https://api.github.com/repos/lijiarui/wechaty-puppet-padchat/issues/165","repository_url":"https://api.github.com/repos/lijiarui/wechaty-puppet-padchat","labels_url":"https://api.github.com/repos/lijiarui/wechaty-puppet-padchat/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/lijiarui/wechaty-puppet-padchat/issues/165/comments","events_url":"https://api.github.com/repos/lijiarui/wechaty-puppet-padchat/issues/165/events","html_url":"https://github.com/lijiarui/wechaty-puppet-padchat/issues/165","id":355432388,"node_id":"MDU6SXNzdWUzNTU0MzIzODg=","number":165,"title":"puppet is not logged-in . WARN PuppetPadchat logout() this.id not exist","user":{"login":"QinYuanyuan","id":21057609,"node_id":"MDQ6VXNlcjIxMDU3NjA5","avatar_url":"https://avatars2.githubusercontent.com/u/21057609?v=4","gravatar_id":"","url":"https://api.github.com/users/QinYuanyuan","html_url":"https://github.com/QinYuanyuan","followers_url":"https://api.github.com/users/QinYuanyuan/followers","following_url":"https://api.github.com/users/QinYuanyuan/following{/other_user}","gists_url":"https://api.github.com/users/QinYuanyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/QinYuanyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QinYuanyuan/subscriptions","organizations_url":"https://api.github.com/users/QinYuanyuan/orgs","repos_url":"https://api.github.com/users/QinYuanyuan/repos","events_url":"https://api.github.com/users/QinYuanyuan/events{/privacy}","received_events_url":"https://api.github.com/users/QinYuanyuan/received_events","type":"User","site_admin":false},"labels":[{"id":1003225012,"node_id":"MDU6TGFiZWwxMDAzMjI1MDEy","url":"https://api.github.com/repos/lijiarui/wechaty-puppet-padchat/labels/Need%20more%20info","name":"Need more info","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-30T05:42:18Z","updated_at":"2018-08-31T02:54:01Z","closed_at":null,"author_association":"NONE","body":"由于在 bot 上线之后，经常出现下面的 bug：\r\n![image](https://user-images.githubusercontent.com/21057609/44831303-80096900-ac58-11e8-9e19-577c666bc541.png)\r\n\r\n然后咨询之后，说是网络问题，建议在 wechaty 初始化的时候添加 profile 参数，并且使用 pm2 管理 bot。\r\n但是在添加 profile 参数之后，再次上线 bot 。第一次扫码登录的时候，手机上显示 “ipad微信已登录“，但是 bot 没有任何反应，并且报错：\r\n`puppet is not logged-in`\r\n`WARN PuppetPadchat logout() this.id not exist`\r\n![image](https://user-images.githubusercontent.com/21057609/44831417-0920a000-ac59-11e8-9abb-0f0cecb4ac01.png)\r\n\r\n然后尝试在本地进行复现，又出现了一个新的已知的 bug ，这个同样是在添加 profile 参数之后出现的：\r\n![image](https://user-images.githubusercontent.com/21057609/44831519-821ff780-ac59-11e8-97ce-07c8df979c1d.png)\r\n\r\n\r\n我的 bot 代码：\r\n```javascript\r\n// 1. Declare your Bot!\r\nconst bot = new Wechaty({\r\n  profile: 'alechat',\r\n  puppet,\r\n  puppetOptions,\r\n})\r\n\r\n// 2. Register event handlers for Bot\r\nbot\r\n .on('logout', onLogout)\r\n .on('login', onLogin)\r\n .on('scan', onScan)\r\n .on('error', onError)\r\n .on('message', onMessage)\r\n .on('room-invite', onRoomInvite)\r\n .on('friendship', onFriendship)\r\n```\r\n如果 debug 需要更多的代码，请回复。希望可以尽快解决这些 bug。"},"comment":{"url":"https://api.github.com/repos/lijiarui/wechaty-puppet-padchat/issues/comments/417535222","html_url":"https://github.com/lijiarui/wechaty-puppet-padchat/issues/165#issuecomment-417535222","issue_url":"https://api.github.com/repos/lijiarui/wechaty-puppet-padchat/issues/165","id":417535222,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzUzNTIyMg==","user":{"login":"windmemory","id":6801292,"node_id":"MDQ6VXNlcjY4MDEyOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/6801292?v=4","gravatar_id":"","url":"https://api.github.com/users/windmemory","html_url":"https://github.com/windmemory","followers_url":"https://api.github.com/users/windmemory/followers","following_url":"https://api.github.com/users/windmemory/following{/other_user}","gists_url":"https://api.github.com/users/windmemory/gists{/gist_id}","starred_url":"https://api.github.com/users/windmemory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windmemory/subscriptions","organizations_url":"https://api.github.com/users/windmemory/orgs","repos_url":"https://api.github.com/users/windmemory/repos","events_url":"https://api.github.com/users/windmemory/events{/privacy}","received_events_url":"https://api.github.com/users/windmemory/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T02:54:01Z","updated_at":"2018-08-31T02:54:01Z","author_association":"COLLABORATOR","body":"我们这边需要可复现的代码或者更详细的log，请麻烦下次再出现这个问题的时候，把详细log贴一下给我们"}}
{"actor":{"display_login":"windmemory"}}