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

Can not login with error message: 当前登录环境异常。为了你的帐号安全,暂时不能登录web微信。 #603

Closed
lijiarui opened this Issue Jun 26, 2017 · 22 comments

Comments

Projects
None yet
@lijiarui
Copy link
Member

lijiarui commented Jun 26, 2017

scan QR code to login, https://wx2.qq.com/ will redirect to https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=AQ1NWzj57ZX7gJeu_Keu8_se@qrticket_0&uuid=Id2o57ANQw==&lang=en_US&scan=1498456159

respond source cod as follows:

Chinese Version

<error><ret>1203</ret><message>当前登录环境异常。为了你的帐号安全,暂时不能登录web微信。你可以通过手机客户端或者windows微信登录。</message></error>

English Version

For account security, newly registered WeChat accounts are unable to log in to Web WeChat. To use WeChat on a computer, use Windows WeChat or Mac WeChat at http://wechat.com

btw
I tried the same account, it cannot login with web wexin, but it can log in with PC client weixin.

@huan huan changed the title Wechat deny account login Can not login with error message: 当前登录环境异常。为了你的帐号安全,暂时不能登录web微信。 Jun 26, 2017

@tomzhu6066

This comment has been minimized.

Copy link

tomzhu6066 commented Jun 26, 2017

Just FYI, many related robot projects using web wechat seem having same issue. From what I know including:
electronic-wechat
itchat
wxpy

I, myself was using itchat and got 4 accounts blocked 3 days ago and still cannot login to web wechat today...

I was interested with wechaty since last weekend as it has so many stars and using selenium web driver which I think is safer under Wechat's anti-robot system than other projects.

Looking for solutions and ideas for avoiding this issue in the future.

@kis87988

This comment has been minimized.

Copy link
Contributor

kis87988 commented Jun 26, 2017

I heard that as well...and I don't know how to figure this out ...
Issue #596 might also relate to this.

@lijiarui

This comment has been minimized.

Copy link
Member

lijiarui commented Jun 26, 2017

@tomzhu6066 change server and change account can solve a little.

@tomzhu6066

This comment has been minimized.

Copy link

tomzhu6066 commented Jun 26, 2017

@lijiarui change account... I must give you a double touch 666~

@lijiarui

This comment has been minimized.

Copy link
Member

lijiarui commented Jun 26, 2017

abnormal headers:

request

GET /cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=AeP3FQu5D5UvR64u9BPWVFsq@qrticket_0&uuid=AfLKdwDVvQ==&lang=en_US&scan=1498479191 HTTP/1.1
Host: wx.qq.com
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: https://wx2.qq.com/
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6
Cookie: pt_clientip=01540a765c829a35; pt_serverip=959a0aab3d47153b; mobileUV=1_1533a63c587_ee059; FTN5K=72b39138; tvfe_boss_uuid=44f4822e521d3f8a; webwxuvid=752526112a0f720c14ef6023031b3226a664e0f47e08d20ea397cc4bc60899a69c966230213fcb318eaf0479fb1d99b9; pac_uid=1_512436430; ptcz=6414bf491e914ff0c9c85060afec1a9d7d4dffed4f7d51befd3d04bce9b9509f; pt2gguin=o0512436430; uin=o0512436430; pgv_pvi=78832640; pgv_si=s8578435072; verifysession=h01164dfe44c02000f117ff80842110a34afb60d171a98896b38a2005cd782c69de4227ca196df1f7dc1b2ccb3abae49ea0; ptisp=ctc; qm_ftn_key=32d1e4d1; qm_authimgs_id=1; qm_verifyimagesession=h019a382e5dde451289d3750e0beecc7739d85846d4ee509995aa7ac165b98e26e2de8e9d3c9754782a; o_cookie=512436430; pgv_info=ssid=s5070506352&ssi=s3096410538; pgv_pvid=6061711240; webwx_auth_ticket=CIsBEND46psKGoABWz77r40nTCaEZKq9ktFxiBu6XslTDzB62NV2xRtmHaKr+dbrfvhRI2EVemysNH4ekreJs1/+vGZ5Qd+cTf0wIkyB2IZgdp2Q9tX1dLn2+dHkT0Zwa5OepiPGgrgRL7l7wwXI2SoUMx5w2fEY4bJGBdhNqy/8AU+4dbu8zsVsBoQ=; mm_lang=en_US; MM_WX_NOTIFY_STATE=1; MM_WX_SOUND_STATE=1; wxloadtime=1498479282_expired; wxpluginkey=1498470481; wxuin=121141715; wxsid=ym96mgK6nZU+b9En; webwx_data_ticket=gSf6hO68keA90pkZKviAygDC

response

HTTP/1.1 301 Moved Permanently
Connection: keep-alive
Content-Type: text/plain;charset=utf-8
Content-Length: 191

query string

ticket=AVKHRHdegnzrD9cQjcg4lYyj@qrticket_0&uuid=Qf9If4mm5A==&lang=en_US&scan=1498479786

normal headers:

request

GET /cgi-bin/mmwebwx-bin/webwxnewloginpage?ticket=AVKHRHdegnzrD9cQjcg4lYyj@qrticket_0&uuid=Qf9If4mm5A==&lang=en_US&scan=1498479786 HTTP/1.1
Host: wx.qq.com
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: https://wx2.qq.com/
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: zh-CN,zh;q=0.8,en;q=0.6
Cookie: pt_clientip=01540a765c829a35; pt_serverip=959a0aab3d47153b; mobileUV=1_1533a63c587_ee059; FTN5K=72b39138; tvfe_boss_uuid=44f4822e521d3f8a; webwxuvid=752526112a0f720c14ef6023031b3226a664e0f47e08d20ea397cc4bc60899a69c966230213fcb318eaf0479fb1d99b9; pac_uid=1_512436430; ptcz=6414bf491e914ff0c9c85060afec1a9d7d4dffed4f7d51befd3d04bce9b9509f; pt2gguin=o0512436430; uin=o0512436430; pgv_pvi=78832640; pgv_si=s8578435072; verifysession=h01164dfe44c02000f117ff80842110a34afb60d171a98896b38a2005cd782c69de4227ca196df1f7dc1b2ccb3abae49ea0; ptisp=ctc; qm_ftn_key=32d1e4d1; qm_authimgs_id=1; qm_verifyimagesession=h019a382e5dde451289d3750e0beecc7739d85846d4ee509995aa7ac165b98e26e2de8e9d3c9754782a; o_cookie=512436430; pgv_info=ssid=s5070506352&ssi=s3096410538; pgv_pvid=6061711240; webwx_auth_ticket=CIsBEND46psKGoABWz77r40nTCaEZKq9ktFxiBu6XslTDzB62NV2xRtmHaKr+dbrfvhRI2EVemysNH4ekreJs1/+vGZ5Qd+cTf0wIkyB2IZgdp2Q9tX1dLn2+dHkT0Zwa5OepiPGgrgRL7l7wwXI2SoUMx5w2fEY4bJGBdhNqy/8AU+4dbu8zsVsBoQ=; MM_WX_NOTIFY_STATE=1; MM_WX_SOUND_STATE=1; wxloadtime=1498479282_expired; mm_lang=en_US; wxpluginkey=1498470481; wxuin=121141715; wxsid=ym96mgK6nZU+b9En; webwx_data_ticket=gSf6hO68keA90pkZKviAygDC

response

HTTP/1.1 301 Moved Permanently
Connection: keep-alive
Location: /
Content-Type: text/plain;charset=utf-8
Set-Cookie: wxuin=121141715; Domain=wx.qq.com; Path=/; Expires=Tue, 27-Jun-2017 00:23:15 GMT
Set-Cookie: wxsid=bL+c0tb+eFXwYr4h; Domain=wx.qq.com; Path=/; Expires=Tue, 27-Jun-2017 00:23:15 GMT
Set-Cookie: wxloadtime=1498479795; Domain=wx.qq.com; Path=/; Expires=Tue, 27-Jun-2017 00:23:15 GMT
Set-Cookie: mm_lang=en_US; Domain=wx.qq.com; Path=/; Expires=Tue, 27-Jun-2017 00:23:15 GMT
Set-Cookie: webwx_data_ticket=gSfb+QvLvglnGLP30LpTCb+I; Domain=.qq.com; Path=/; Expires=Tue, 27-Jun-2017 00:23:15 GMT
Set-Cookie: webwx_auth_ticket=CIsBEO/17tUPGoABB4ImA1ydlI3BzB97OdEVoRu6XslTDzB62NV2xRtmHaKr+dbrfvhRI2EVemysNH4ekreJs1/+vGZ5Qd+cTf0wIkyB2IZgdp2Q9tX1dLn2+dHkT0Zwa5OepiPGgrgRL7l7wwXI2SoUMx5w2fEY4bJGBdhNqy/8AU+4dbu8zsVsBoQ=; Domain=wx.qq.com; Path=/; Expires=Thu, 24-Jun-2027 12:23:15 GMT
Content-Encoding: gzip
Content-Length: 222

query string

ticket=AeP3FQu5D5UvR64u9BPWVFsq@qrticket_0&uuid=AfLKdwDVvQ==&lang=en_US&scan=1498479191
@huan

This comment has been minimized.

Copy link
Member

huan commented Jun 26, 2017

@tomzhu6066 Could you please post the link of issues from other projects to this issue?

Because then we could track them at one place right here, which I believe could help us to monitor the problem and find the solution more effective.

@huan huan added the question label Jun 26, 2017

@xinbenlv

This comment has been minimized.

Copy link
Member

xinbenlv commented Jul 16, 2017

Having the same problem

@tempdban

This comment has been minimized.

Copy link

tempdban commented Jul 28, 2017

兄弟们,这个UA是我浏览器的UA,大家顺手换一个。

@spacelan

This comment has been minimized.

Copy link

spacelan commented Jul 28, 2017

我有一个一天接收几千条消息的机器人,在线状态下,用其他手机重新登录帐号后,才开始扫码提示环境异常

所以微信不会在机器人在线状态下强制下线?

@huan

This comment has been minimized.

Copy link
Member

huan commented Jul 28, 2017

@spacelan Hi, could you please add my Wechat(id: 918999) because I like wechat4u very much. :)

@houseDaine

This comment has been minimized.

Copy link

houseDaine commented Nov 23, 2017

请问下,数据库文件在哪

@suntong

This comment has been minimized.

Copy link
Contributor

suntong commented Feb 8, 2018

唉...,不幸我也遇到这个“暂时不能登录web微信”了,我知道这应该是被封了, 想知道大家被封了以后是如何解决的?
我看很多人说等上三天也没用。我不可能用其他手机重新登录帐号,也不可能换登录帐号,那还有其它解决办法吗?

关键是我什么也没做呀,就是把我那个什么也没干的bot挂在哪儿,看能坚持多长时间,然后停下来想换新程序试试,结果就这么被封了。感觉好冤枉啊。这封的确觉也让人觉得实在太憋屈的了。

看来微信的确不会在机器人在线状态下强制下线,不过想停下来换新程序就要千万小心了。

唉, :-( , :-(

@huan

This comment has been minimized.

Copy link
Member

huan commented Feb 9, 2018

I'd like to share my experience: one of my accounts had been blocked about 2 months ago, and it keeps being blocked for about 45 days, then someday I try to log in it again, succeed.

@xinbenlv

This comment has been minimized.

Copy link
Member

xinbenlv commented Feb 9, 2018

@suntong

This comment has been minimized.

Copy link
Contributor

suntong commented Feb 9, 2018

thank you bros for sharing! Guess I'd be patient, and careful too, :-)

@phoenixgao

This comment has been minimized.

Copy link

phoenixgao commented Apr 13, 2018

Mine was blocked around 10/1/2017... I think now it's been unblocked around the end of March 2018, or April

@goldcome

This comment has been minimized.

Copy link

goldcome commented Apr 14, 2018

我这里应用 只要不通宵运行网页版 我发现都不会被封 只要通宵 就危险了 只要退出从新扫描 就会出问题 我测试的微信号 都是个人老号

@suntong

This comment has been minimized.

Copy link
Contributor

suntong commented Apr 14, 2018

只要退出从新扫描 就会出问题

没错,我遇到的正是这种情况

只要通宵 就危险了

原来如此,谢谢

不过这也太苛刻,太过分了
是不是调用API会比运行网页版安全呢?毕竟API就是给Bot用的啊

@xinbenlv

This comment has been minimized.

Copy link
Member

xinbenlv commented Apr 14, 2018

@atubo2012

This comment has been minimized.

Copy link

atubo2012 commented Apr 17, 2018

Dear,I am coming,I found a picture like this just now, my hear is ba cold ba cold(拔凉拔凉)。
Hope my blocked account can login through web edition again some day.

7457e6ff-3a04-4ef1-b6ab-8cac99fc

Maybe there were three reason for blocking,many messages were sent because of bugs in my code, or error UTC timezone in the wetchay docker,or Ip address from qcloud(maybe)!

Ma brother a !

@huan

This comment has been minimized.

Copy link
Member

huan commented Apr 30, 2018

I'll close this issue for now because it had been well-known for the developers today.

@huan huan closed this Apr 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment