wx websync -1 循环
[2015-11-08 11:52:07] T(9195) wxagent.py:861 dumpReply -- PyQt5.QtCore.QUrl('https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid=gN3mK9kelFL8Azfg&skey=%40crypt_3ea2fe08_467acbbf76c6c8809d9019c503f0e89c&lang=en_US&pass_ticket=Ku0WtqFa014XW%2B0WfkGfHqFBtlK1rDBjtTEcy1%2FvKbTpwFtWA7mU5CLiv7ZsnLYV') [2015-11-08 11:52:07] T(9195) wxagent.py:863 dumpReply -- 200 [2015-11-08 11:52:07] T(9195) wxagent.py:865 dumpReply -- None [2015-11-08 11:52:07] T(9195) wxagent.py:870 dumpReply -- b'Connection'=b'keep-alive' [2015-11-08 11:52:07] T(9195) wxagent.py:870 dumpReply -- b'X-WX-FJ'=b'001,018,0000001024' [2015-11-08 11:52:07] T(9195) wxagent.py:870 dumpReply -- b'X-WX-ST'=b'2' [2015-11-08 11:52:07] T(9195) wxagent.py:870 dumpReply -- b'Content-Type'=b'text/plain' [2015-11-08 11:52:07] T(9195) wxagent.py:870 dumpReply -- b'Content-Encoding'=b'deflate' [2015-11-08 11:52:07] T(9195) wxagent.py:131 onReply -- content-length:579,200,0 [2015-11-08 11:52:07] T(9195) wxagent.py:360 onReply -- web sync result:579200 [2015-11-08 11:52:07] T(9195) wxagent.py:987 emitDBusNewMessage -- 579,772 [2015-11-08 11:52:07] T(9195) wxagent.py:993 emitDBusNewMessage -- True [2015-11-08 11:52:07] T(9195) wxagent.py:883 hcc2str -- {\n"BaseResponse": {\n"Ret": -1,\n"ErrMsg": ""\n}\n,\n"AddMsgCount": 0,\n"AddMsgList": [],\n"ModContactCount": 0,\n"ModContactLis [2015-11-08 11:52:07] T(9195) wxagent.py:381 onReply -- {} [2015-11-08 11:52:07] T(9195) wxagent.py:386 onReply -- whywhy? [2015-11-08 11:52:07] T(9195) wxagent.py:544 syncCheck -- https://webpush2.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?r=1446954727&skey=%40crypt_3ea2fe08_467acbbf76c6c8809d9019c503f0e89c&sid=gN3mK9kelFL8Azfg&uin=979270107&deviceid=e669767113868187&synckey=&lang=en_US&pass_ticket=Ku0WtqFa014XW%252B0WfkGfHqFBtlK1rDBjtTEcy1%252FvKbTpwFtWA7mU5CLiv7ZsnLYV [2015-11-08 11:52:07] T(9195) wxagent.py:858 dumpReply -- gggggggg=========== [2015-11-08 11:52:07] T(9195) wxagent.py:859 dumpReply -- <PyQt5.QtNetwork.QNetworkReply object at 0x7f0b99f7b1f8> [2015-11-08 11:52:07] T(9195) wxagent.py:861 dumpReply -- PyQt5.QtCore.QUrl('https://webpush2.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?r=1446954727&skey=%40crypt_3ea2fe08_467acbbf76c6c8809d9019c503f0e89c&sid=gN3mK9kelFL8Azfg&uin=979270107&deviceid=e669767113868187&synckey=&lang=en_US&pass_ticket=Ku0WtqFa014XW%252B0WfkGfHqFBtlK1rDBjtTEcy1%252FvKbTpwFtWA7mU5CLiv7ZsnLYV') [2015-11-08 11:52:07] T(9195) wxagent.py:863 dumpReply -- 200 [2015-11-08 11:52:07] T(9195) wxagent.py:865 dumpReply -- None [2015-11-08 11:52:07] T(9195) wxagent.py:870 dumpReply -- b'Access-Control-Allow-Origin'=b'*' [2015-11-08 11:52:07] T(9195) wxagent.py:870 dumpReply -- b'Connection'=b'keep-alive' [2015-11-08 11:52:07] T(9195) wxagent.py:870 dumpReply -- b'Content-Type'=b'text/javascript' [2015-11-08 11:52:07] T(9195) wxagent.py:870 dumpReply -- b'Content-Length'=b'43' [2015-11-08 11:52:07] T(9195) wxagent.py:131 onReply -- content-length:43,200,0 [2015-11-08 11:52:07] T(9195) wxagent.py:296 onReply -- sync check result:b'window.synccheck={retcode:"0",selector:"7"}' [2015-11-08 11:52:07] T(9195) wxagent.py:321 onReply -- [('0', '7')]---window.synccheck={retcode:"0",selector:"7"} [2015-11-08 11:52:07] T(9195) wxagent.py:587 webSync -- {"rr": 1446954727, "BaseRequest": {"Uin": "979270107", "Sid": "gN3mK9kelFL8Azfg", "Skey": "@crypt_3ea2fe08_467acbbf76c6c8809d9019c503f0e89c", "DeviceID": "e669767113868187"}, "SyncKey": {"Count": 0, "List": []}} ^CSIGINT catched: 2 <frame object at 0x7f0ba094d890> <PyQt5.QtCore.QCoreApplication object at 0x7f0b9a7c2d38>
运行了大概2天半时间后,遇到了这个错误。 目前的处理是,websync==-1 ? synccheck ===> websync == 7 ==> websync == -1的循环。
也许也可以试一下使用新QNetworkManager连接+当前会话信息的方式解决吧。