{"action":"created","issue":{"url":"https://api.github.com/repos/blueset/efb-wechat-slave/issues/25","repository_url":"https://api.github.com/repos/blueset/efb-wechat-slave","labels_url":"https://api.github.com/repos/blueset/efb-wechat-slave/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/blueset/efb-wechat-slave/issues/25/comments","events_url":"https://api.github.com/repos/blueset/efb-wechat-slave/issues/25/events","html_url":"https://github.com/blueset/efb-wechat-slave/issues/25","id":330110492,"node_id":"MDU6SXNzdWUzMzAxMTA0OTI=","number":25,"title":"某个微信账号无法登陆","user":{"login":"fleeto","id":6958477,"node_id":"MDQ6VXNlcjY5NTg0Nzc=","avatar_url":"https://avatars3.githubusercontent.com/u/6958477?v=4","gravatar_id":"","url":"https://api.github.com/users/fleeto","html_url":"https://github.com/fleeto","followers_url":"https://api.github.com/users/fleeto/followers","following_url":"https://api.github.com/users/fleeto/following{/other_user}","gists_url":"https://api.github.com/users/fleeto/gists{/gist_id}","starred_url":"https://api.github.com/users/fleeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleeto/subscriptions","organizations_url":"https://api.github.com/users/fleeto/orgs","repos_url":"https://api.github.com/users/fleeto/repos","events_url":"https://api.github.com/users/fleeto/events{/privacy}","received_events_url":"https://api.github.com/users/fleeto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-07T04:12:40Z","updated_at":"2018-06-07T04:19:55Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n请注意，在您提交 Issue 之前：\r\n* 请完全理解并尽可能遵守提问的智慧以及 EFB 项目贡献指南的有关\r\n  部分。\r\n* 请检查此前是否有其他人提交过相关问题。\r\n* 请查阅 EFB 说明文档及本项目说明是否已针对您的问题进行说明。\r\n\r\n提问的智慧: https://github.com/FredWe/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md\r\nEFB 项目贡献指南: https://github.com/blueset/ehForwarderBot/blob/master/CONTRIBUTING.md\r\nEFB 说明文档: https://ehforwarderbot.readthedocs.io/\r\n\r\nBug 汇报需要包含完整的重现步骤与 Verbose 级别的日志。日志获取\r\n方式请参照 EFB 说明文档。\r\n\r\n这里只接受与 EFB 微信从端相关的建议与 Bug 汇报。其他内容请移步\r\n相应的 GitHub Repository。\r\n\r\n项目维护者可能关闭其认为并未遵守以上说明的 Issue，并不予答复。\r\n敬请知悉。\r\n-->\r\n\r\n### 版本信息\r\n<!-- 可以通过 ehforwarderbot --version 获取。 -->\r\n\r\n```\r\nEH Forwarder Bot\r\nVersion: 2.0.0b10\r\nPython version:\r\n3.6.3 (default, Nov 21 2017, 14:55:19)\r\n[GCC 6.4.0]\r\n\r\nMaster channel:\r\n    Telegram Master (blueset.telegram) 2.0.0b11 # Default profile\r\n\r\nSlave channel:\r\n    WeChat Slave (blueset.wechat) 2.0.0a12\r\n\r\nMiddlewares:\r\n    No middleware is enabled.\r\n```\r\n\r\n### 问题描述\r\n<!-- 请尽可能详细且完整的描述问题出现的症状，以及期待的正确运行结果。 -->\r\n\r\n- 发现一个微信号掉线\r\n- TG 内出现信息\r\n```\r\n`WS User Auth:\r\nWeChat server has logged you out. Please log in again when you are ready.\r\n--------\r\nPreparing to log in...\r\n```\r\n以及二维码，手机确认操作后，TG 回应 `QR code expired, please scan the new one.`，然后是 `Confirm on your phone.`\r\n\r\n- 登录主机重启，应用出错，当时没记录日志。\r\n- 删除 `./blueset.wechat/` 所有文件，删除blueset.telegram/tgdata.db 并重建，带 `-v` 启动应用，得到下面的日志。\r\n\r\n**同时使用的另外一个账号无此故障**\r\n\r\n### 重现步骤\r\n<!-- 请尽可能详细且完整的描述使问题出现的步骤。 -->\r\n\r\n\r\n### Verbose 日志\r\n<details>\r\n<summary>Verbose 日志</summary>\r\n\r\n```\r\nehforwarderbot -v\r\n2018-06-07 04:03:29,345 [Level 99]: ehforwarderbot.__main__ (__main__.init; __main__.py:77)\r\n     Initializing slave blueset.wechat...\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/ehforwarderbot\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/lib/python3.6/site-packages/ehforwarderbot/__main__.py\", line 190, in main\r\n    init()\r\n  File \"/usr/lib/python3.6/site-packages/ehforwarderbot/__main__.py\", line 82, in init\r\n    coordinator.add_channel(cls(instance_id=instance_id))\r\n  File \"/usr/lib/python3.6/site-packages/efb_wechat_slave/__init__.py\", line 174, in __init__\r\n    self.authenticate('console_qr_code')\r\n  File \"/usr/lib/python3.6/site-packages/efb_wechat_slave/__init__.py\", line 518, in authenticate\r\n    logout_callback=self.exit_callback)\r\n  File \"/usr/lib/python3.6/site-packages/efb_wechat_slave/wxpy/api/bot.py\", line 86, in __init__\r\n    loginCallback=login_callback, exitCallback=logout_callback\r\n  File \"/usr/lib/python3.6/site-packages/itchat/components/register.py\", line 29, in auto_login\r\n    loginCallback=loginCallback, exitCallback=exitCallback):\r\n  File \"/usr/lib/python3.6/site-packages/itchat/components/hotreload.py\", line 54, in load_login_status\r\n    self.loginInfo['User'] = templates.User(self.loginInfo['User'])\r\nKeyError: 'User'```\r\n \r\n</details>"},"comment":{"url":"https://api.github.com/repos/blueset/efb-wechat-slave/issues/comments/395288105","html_url":"https://github.com/blueset/efb-wechat-slave/issues/25#issuecomment-395288105","issue_url":"https://api.github.com/repos/blueset/efb-wechat-slave/issues/25","id":395288105,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTI4ODEwNQ==","user":{"login":"fleeto","id":6958477,"node_id":"MDQ6VXNlcjY5NTg0Nzc=","avatar_url":"https://avatars3.githubusercontent.com/u/6958477?v=4","gravatar_id":"","url":"https://api.github.com/users/fleeto","html_url":"https://github.com/fleeto","followers_url":"https://api.github.com/users/fleeto/followers","following_url":"https://api.github.com/users/fleeto/following{/other_user}","gists_url":"https://api.github.com/users/fleeto/gists{/gist_id}","starred_url":"https://api.github.com/users/fleeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleeto/subscriptions","organizations_url":"https://api.github.com/users/fleeto/orgs","repos_url":"https://api.github.com/users/fleeto/repos","events_url":"https://api.github.com/users/fleeto/events{/privacy}","received_events_url":"https://api.github.com/users/fleeto/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T04:19:55Z","updated_at":"2018-06-07T04:19:55Z","author_association":"NONE","body":"补充一下重新配置得到的错误信息\r\n\r\n```\r\nIf the QR code was not shown correctly, please visit:\r\nhttps://login.weixin.qq.com/qrcode/XXXX\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/ehforwarderbot\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/lib/python3.6/site-packages/ehforwarderbot/__main__.py\", line 190, in main\r\n    init()\r\n  File \"/usr/lib/python3.6/site-packages/ehforwarderbot/__main__.py\", line 82, in init\r\n    coordinator.add_channel(cls(instance_id=instance_id))\r\n  File \"/usr/lib/python3.6/site-packages/efb_wechat_slave/__init__.py\", line 174, in __init__\r\n    self.authenticate('console_qr_code')\r\n  File \"/usr/lib/python3.6/site-packages/efb_wechat_slave/__init__.py\", line 518, in authenticate\r\n    logout_callback=self.exit_callback)\r\n  File \"/usr/lib/python3.6/site-packages/efb_wechat_slave/wxpy/api/bot.py\", line 96, in __init__\r\n    enhance_webwx_request(self)\r\n  File \"/usr/lib/python3.6/site-packages/efb_wechat_slave/wxpy/utils/misc.py\", line 327, in enhance_webwx_request\r\n    '&pass_ticket={li[pass_ticket]}'.format(li=login_info)\r\nKeyError: 'wxsid'\r\n```\r\n"}}
{"actor":{"display_login":"fleeto"}}