Closed lingnand closed 11 years ago
对于这个问题还要让我回答多少遍
和#255,#254,#253完全重复
webqq协议更新了。
各种途径更新pidgin-lwqq在4月17日版本以后即可。
2013/4/18 yulan6248 notifications@github.com
如题。总是显示“获取好友|群列表失败”
— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/256 .
commit 28c99b72449dfed935c8204d2f966821541b1420 Author: xiehuc xiehuc@gmail.com Date: Wed Apr 17 09:05:15 2013 +0800
clean code
Signed-off-by: xiehuc <xiehuc@gmail.com>
commit 6013e7c58945fd5beec5183b4e2d8932681a82fc
这个版本测试过了,还是显示“获取好友|群列表失败”
masaga.
你编译完成了安装了,重启pidgin没有?
你用VERBOSE=3等级输出
终端登录,
看有没有hash出现: r={"h":"hello","hash":"9CCF9FC4","vfwebqq":"。。。。。。"}
2013/4/18 wonleing notifications@github.com
git log
commit 28c99b7https://github.com/xiehuc/pidgin-lwqq/commit/28c99b72449dfed935c8204d2f966821541b1420 Author: xiehuc xiehuc@gmail.com Date: Wed Apr 17 09:05:15 2013 +0800
clean code
Signed-off-by: xiehuc xiehuc@gmail.com
commit 6013e7chttps://github.com/xiehuc/pidgin-lwqq/commit/6013e7c58945fd5beec5183b4e2d8932681a82fc
这个版本测试过了,还是显示“获取好友|群列表失败”
— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/256#issuecomment-16549480 .
编译完成了(cmake, make) 安装了(sudo make install) 重启pidgin了
pidgin -d VERBOSE=3
[Apr 18 10:23:37] WARNING[3415]: http.c:574 check_multi_info: async retcode:28 [Apr 18 10:23:37] WARNING[3415]: http.c:574 check_multi_info: async retcode:28 (10:23:37) connection: Connection error on 0x7fd73164a5f0 (reason: 0 description: 获取好友|群列表失败) (10:23:37) account: Disconnecting account 26240726 (0x7fd730edd3a0) (10:23:37) connection: Disconnecting connection 0x7fd73164a5f0
cmake .. -DVERBOSE=3
这样打开输出等级。
虽然非常小概率的你出现的问题和webqq协议升级不是一个原因。
感觉还是哪里没有弄对。
2013/4/18 wonleing notifications@github.com
编译完成了(cmake, make) 安装了(sudo make install) 重启pidgin了
pidgin -d VERBOSE=3
[Apr 18 10:23:37] WARNING[3415]: http.c:574 check_multi_info: async retcode:28 [Apr 18 10:23:37] WARNING[3415]: http.c:574 check_multi_info: async retcode:28 (10:23:37) connection: Connection error on 0x7fd73164a5f0 (reason: 0 description: 获取好友|群列表失败) (10:23:37) account: Disconnecting account 26240726 (0x7fd730edd3a0) (10:23:37) connection: Disconnecting connection 0x7fd73164a5f0
— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/256#issuecomment-16549980 .
我一直很纳闷,你为什么一直是写“cmake ..”,明显应该是"cmake .;make;sudo make install" 另外,make中有一些warning, 不知道影响不影响: /home/leon/project/pidgin-lwqq/src/liblwqq/info.c: 在函数‘do_change_discu_mem’中: /home/leon/project/pidgin-lwqq/src/liblwqq/info.c:132:9: 警告: 变量‘err’被设定但未被使用 [-Wunused-but-set-variable] /home/leon/project/pidgin-lwqq/src/liblwqq/info.c: 在文件作用域: /home/leon/project/pidgin-lwqq/src/liblwqq/info.c:50:12: 警告: ‘lwqq_gdb_list_group_member’定义后未使用 [-Wunused-function] /home/leon/project/pidgin-lwqq/src/liblwqq/info.c:61:12: 警告: ‘lwqq_gdb_list_buddies’定义后未使用 [-Wunused-function] /home/leon/project/pidgin-lwqq/src/liblwqq/info.c:235:14: 警告: ‘parse_string’定义后未使用 [-Wunused-function] /home/leon/project/pidgin-lwqq/src/liblwqq/async.c:323:12: 警告: ‘lwqq_gdb_still_waiting’定义后未使用 [-Wunused-function] /home/leon/project/pidgin-lwqq/src/liblwqq/http.c:91:12: 警告: ‘lwqq_gdb_whats_running’定义后未使用 [-Wunused-function] /home/leon/project/pidgin-lwqq/src/trex.c: 在函数‘trex_newnode’中: /home/leon/project/pidgin-lwqq/src/trex.c:92:7: 警告: 未使用的变量‘oldsize’ [-Wunused-variable] /home/leon/project/pidgin-lwqq/src/trex.c: 在函数‘trex_element’中: /home/leon/project/pidgin-lwqq/src/trex.c:272:7: 警告: 变量‘op’被设定但未被使用 [-Wunused-but-set-variable] /home/leon/project/pidgin-lwqq/src/trex.c: 在函数‘trex_matchnode’中: /home/leon/project/pidgin-lwqq/src/trex.c:494:4: 警告: 建议在‘||’的操作数中出现的‘&&’前后加上括号 [-Wparentheses] /home/leon/project/pidgin-lwqq/src/trex.c:506:3: 警告: 计算出的值未被使用 [-Wunused-value] /home/leon/project/pidgin-lwqq/src/trex.c:512:4: 警告: 计算出的值未被使用 [-Wunused-value] /home/leon/project/pidgin-lwqq/src/trex.c:518:4: 警告: 计算出的值未被使用 [-Wunused-value] /home/leon/project/pidgin-lwqq/src/trex.c:524:3: 警告: 计算出的值未被使用 [-Wunused-value] /home/leon/project/pidgin-lwqq/src/trex.c: 在函数‘trex_searchrange’中: /home/leon/project/pidgin-lwqq/src/trex.c:614:3: 警告: 计算出的值未被使用 [-Wunused-value] /home/leon/project/pidgin-lwqq/src/webqq.c:703:13: 警告: ‘qq_conv_open’定义后未使用 [-Wunused-function]
mkdir build cd build cmake ..
这样就成了 .. 了。
如果你不mkdir build, 直接的话就成了
cmake .了。
第一种是cmake标准用法。
警告没有关系,以后可以修正。
2013/4/18 wonleing notifications@github.com
我一直很纳闷,你为什么一直是写“cmake ..”,明显应该是"cmake .;make;sudo make install" 另外,make中有一些warning, 不知道影响不影响: /home/leon/project/pidgin-lwqq/src/liblwqq/info.c: 在函数‘do_change_discu_mem’中: /home/leon/project/pidgin-lwqq/src/liblwqq/info.c:132:9: 警告: 变量‘err’被设定但未被使用 [-Wunused-but-set-variable] /home/leon/project/pidgin-lwqq/src/liblwqq/info.c: 在文件作用域: /home/leon/project/pidgin-lwqq/src/liblwqq/info.c:50:12: 警告: ‘lwqq_gdb_list_group_member’定义后未使用 [-Wunused-function] /home/leon/project/pidgin-lwqq/src/liblwqq/info.c:61:12: 警告: ‘lwqq_gdb_list_buddies’定义后未使用 [-Wunused-function] /home/leon/project/pidgin-lwqq/src/liblwqq/info.c:235:14: 警告: ‘parse_string’定义后未使用 [-Wunused-function] /home/leon/project/pidgin-lwqq/src/liblwqq/async.c:323:12: 警告: ‘lwqq_gdb_still_waiting’定义后未使用 [-Wunused-function] /home/leon/project/pidgin-lwqq/src/liblwqq/http.c:91:12: 警告: ‘lwqq_gdb_whats_running’定义后未使用 [-Wunused-function] /home/leon/project/pidgin-lwqq/src/trex.c: 在函数‘trex_newnode’中: /home/leon/project/pidgin-lwqq/src/trex.c:92:7: 警告: 未使用的变量‘oldsize’ [-Wunused-variable] /home/leon/project/pidgin-lwqq/src/trex.c: 在函数‘trex_element’中: /home/leon/project/pidgin-lwqq/src/trex.c:272:7: 警告: 变量‘op’被设定但未被使用 [-Wunused-but-set-variable] /home/leon/project/pidgin-lwqq/src/trex.c: 在函数‘trex_matchnode’中: /home/leon/project/pidgin-lwqq/src/trex.c:494:4: 警告: 建议在‘||’的操作数中出现的‘&&’前后加上括号 [-Wparentheses] /home/leon/project/pidgin-lwqq/src/trex.c:506:3: 警告: 计算出的值未被使用 [-Wunused-value] /home/leon/project/pidgin-lwqq/src/trex.c:512:4: 警告: 计算出的值未被使用 [-Wunused-value] /home/leon/project/pidgin-lwqq/src/trex.c:518:4: 警告: 计算出的值未被使用 [-Wunused-value] /home/leon/project/pidgin-lwqq/src/trex.c:524:3: 警告: 计算出的值未被使用 [-Wunused-value] /home/leon/project/pidgin-lwqq/src/trex.c: 在函数‘trex_searchrange’中: /home/leon/project/pidgin-lwqq/src/trex.c:614:3: 警告: 计算出的值未被使用 [-Wunused-value] /home/leon/project/pidgin-lwqq/src/webqq.c:703:13: 警告: ‘qq_conv_open’定义后未使用 [-Wunused-function]
— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/256#issuecomment-16550561 .
verbose flag 加在cmake中输出也是一样的:
dns[3751]: nobody needs me... =( dns[3750]: nobody needs me... =( [Apr 18 10:38:21] WARNING[3718]: http.c:574 check_multi_info: async retcode:28 [Apr 18 10:38:21] WARNING[3718]: http.c:574 check_multi_info: async retcode:28 [Apr 18 10:38:41] WARNING[3718]: http.c:574 check_multi_info: async retcode:28 [Apr 18 10:38:41] WARNING[3718]: http.c:574 check_multi_info: async retcode:28 [Apr 18 10:39:01] WARNING[3718]: http.c:574 check_multi_info: async retcode:28 [Apr 18 10:39:01] WARNING[3718]: http.c:574 check_multi_info: async retcode:28 (null) (10:39:01) connection: Connection error on 0x7fb7bc2c71e0 (reason: 0 description: 获取好友|群列表失败) (10:39:01) account: Disconnecting account 26240726 (0x7fb7bbb5b5a0) (10:39:01) connection: Disconnecting connection 0x7fb7bc2c71e0 boom!! (10:39:01) connection: Destroying connection 0x7fb7bc2c71e0
看一下http.c第574行吧,msg->data.result 返回值不是0
574: lwqq_log(LOG_WARNING,"async retcode:%d\n",ret);
还有,输出不可能这么少,
感觉就像没有使用刚才编译的。
具体的你可以用gdb pidgin 然后 break calc_hash 看能不能触发断点。
在 2013年4月18日上午10:53,谢虎成 xiehuc@gmail.com写道:
574: lwqq_log(LOG_WARNING,"async retcode:%d\n",ret);
还有,输出不可能这么少,
感觉就像没有使用刚才编译的。
我只是截了其中出错的一段,全部log太长了。 我发现了个神奇的事情,Connection error on 0x7fb7bc2c71e0 (reason: 0 description: 获取好友|群列表失败) 这个错误之后我没像以前马上退出 而是去看code了,过了5分钟后居然连接上了! 翻看记录,hello hash在一开始就能得到,好像是cookie那边卡了一会。难道是我列表过长,而time out设置太短而造成第一次来不及retrieve全部数据?
恩。绝对是了。
这个不是timeout的问题,timeout设置的是多少分钟没有速度才断开,
所以就算是好友列表长,只要不是速度慢,就不会触发timeout
单纯网络问题。
在 2013年4月18日上午11:00,wonleing notifications@github.com写道:
我只是截了其中出错的一段,全部log太长了。 我发现了个神奇的事情,Connection error on 0x7fb7bc2c71e0 (reason: 0 description: 获取好友|群列表失败) 这个错误之后我没像以前马上退出 而是去看code了,过了5分钟后居然连接上了! 翻看记录,hello hash在一开始就能得到,好像是cookie那边卡了一会。难道是我列表过长,而time out设置太短而造成第一次来不及retrieve全部数据?
— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/256#issuecomment-16551893 .
http.c 里的 CURLOPT_CONNECTTIMEOUT 改大或许有用
On Thu, Apr 18, 2013 at 06:18:38AM -0700, amitbha wrote:
git版本的pidgin-lwqq今天可以登录
http.c 里的 CURLOPT_CONNECTTIMEOUT 改大或许有用
Reply to this email directly or view it on GitHub: https://github.com/xiehuc/pidgin-lwqq/issues/256#issuecomment-16575715
昨天还可以,今早不行了。。用的最新的版本。
(11:31:59) autorecon: do_signon called (11:31:59) autorecon: calling purple_account_connect (11:31:59) account: Connecting to account 917928350. (11:31:59) connection: Connecting. gc = 0x7f45202d2e70 Get webqq version from https://ui.ptlogin2.qq.com/cgi-bin/ver (11:31:59) autorecon: done calling purple_account_connect Get webqq version: 201304170930 [Apr 19 11:32:00] ERROR[9925]: type.c:495 lwqq_set_cookie: No this cookie:confirmuin Get response verify code: ptui_checkVC('0','!MII','\x00\x00\x00\x00\x36\xb6\x79\x9e'); Verify code: !MII Get verify code OK [Apr 19 11:32:00] ERROR[9925]: type.c:495 lwqq_set_cookie: No this cookie:superuin [Apr 19 11:32:00] ERROR[9925]: type.c:495 lwqq_set_cookie: No this cookie:superkey [Apr 19 11:32:00] ERROR[9925]: type.c:495 lwqq_set_cookie: No this cookie:ETK [Apr 19 11:32:00] ERROR[9925]: type.c:495 lwqq_set_cookie: No this cookie:airkey (11:32:01) connection: Connection error on 0x7f45202d2e70 (reason: 0 description: 获取好友|群列表失败)
最新的版本又不行了……
Get webqq version from https://ui.ptlogin2.qq.com/cgi-bin/ver Get webqq version: 201304170930
从时间上看比最后一次commit要晚,是不是qq改了什么了?
已更新
2013/4/19 Fouthe notifications@github.com
Get webqq version from https://ui.ptlogin2.qq.com/cgi-bin/ver Get webqq version: 201304170930
从时间上看比最后一次commit要晚,是不是qq改了什么了?
— Reply to this email directly or view it on GitHubhttps://github.com/xiehuc/pidgin-lwqq/issues/256#issuecomment-16636088 .
已测,可以登陆,qq群也没有问题。
谢谢作者的辛苦努力 测试已没问题。
如题。总是显示“获取好友|群列表失败”