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

多了5秒导致微信登录超时失败 #17

Open
Javonne-liu opened this issue Aug 1, 2022 · 3 comments
Open

多了5秒导致微信登录超时失败 #17

Javonne-liu opened this issue Aug 1, 2022 · 3 comments

Comments

@Javonne-liu
Copy link

2022-08-01 16-43-49 创建的截图
微信图片_20220801164439

@dentonliu
Copy link

dentonliu commented Aug 4, 2022

照下面改下itchat的包 components目录的login.py文件,就可以了。可惜我的登录不上去

while not isLoggedIn:
status = self.check_login()
if hasattr(qrCallback, 'call'):
qrCallback(uuid=self.uuid, status=status, qrcode=qrStorage.getvalue())
if status == '200':
isLoggedIn = True
elif status == '201':
if isLoggedIn is not None:
logger.info('Please press confirm on your phone.')
isLoggedIn = None
// 延时10秒
time.sleep(10)
elif status != '408':
break
if isLoggedIn:
break
elif self.isLogging:
logger.info('Log in time out, reloading QR code.')

@hirolee88
Copy link

// 延时10秒
time.sleep(10)

@hirolee88
Copy link

('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
登录失败。
程序已退出...

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

3 participants