747929791 / majsoul_wrapper

自动化雀魂AI的SDK,实时解析雀魂对局信息,并模拟鼠标动作出牌
MIT License
379 stars 60 forks source link

【小白求助】 在配置完成后,浏览器成功打开,但是无法连接网页 #6

Open frankthinker opened 3 years ago

frankthinker commented 3 years ago

image

addon能成功打开chrome,其他的插件也都安装配置好了。 但是,如图所示,cmd提示“设备没有发挥作用”,并且“无法连接到accounts.google.com”。

经我检查,在挂个人代理的情况下,我能用简易的脚本打开网页accounts.google.com。 但是在此addon打开的窗口中,我不能连接网页。我猜测这和37247端口有关,但不是很确定。

所以,请问这样的情况该如何解决?谢谢了。

frankthinker commented 3 years ago

问题补充:

这是运行addon.py后,IDLE的报错信息 image

这说明是哪里出了问题了呢?

frankthinker commented 3 years ago

为了防止离开SNI使用TclTLS的情况,使用--ssl-insecure选项,能够打开浏览器,但是一直停留在空白页。

命令行显示:

[13680:11972:0331/093548.944:ERROR:device_event_log_impl.cc(214)] [09:35:48.944] USB: usb_device_handle_win.cc:1056 Failed to read descriptor from node connection: 连到系统上的设备没有发挥作用。 (0x1F)

127.0.0.1:63702: clientdisconnect 127.0.0.1:63717: clientconnect 127.0.0.1:63723: clientconnect 127.0.0.1:63725: clientconnect 127.0.0.1:63727: clientconnect 127.0.0.1:63729: clientconnect 127.0.0.1:63730: clientconnect 127.0.0.1:63717: clientdisconnect 127.0.0.1:63732: clientconnect 127.0.0.1:63723: clientdisconnect 127.0.0.1:63725: clientdisconnect 127.0.0.1:63727: clientdisconnect 127.0.0.1:63729: clientdisconnect 127.0.0.1:63738: clientconnect 127.0.0.1:63744: clientconnect 127.0.0.1:63732: clientdisconnect 127.0.0.1:63785: clientconnect 127.0.0.1:63730: clientdisconnect 127.0.0.1:63785: clientdisconnect 127.0.0.1:63904: clientconnect 127.0.0.1:63904: clientdisconnect 127.0.0.1:63962: clientconnect

反反复复出现 clientconnect和clientdisconnect

此时,使用chrome打开www.baidu.com,能正常打开; 使用chrome打开www.google.com,报错如下:

502 Bad Gateway ProtocolException('Server connection to (\'www.google.com\', 80) failed: Error connecting to "www.google.com": [WinError 10060]

szz1233 commented 2 years ago

有遇到同一问题,是否有解决方式?

zhoujiayingvana commented 2 years ago

image

addon能成功打开chrome,其他的插件也都安装配置好了。 但是,如图所示,cmd提示“设备没有发挥作用”,并且“无法连接到accounts.google.com”。

经我检查,在挂个人代理的情况下,我能用简易的脚本打开网页accounts.google.com。 但是在此addon打开的窗口中,我不能连接网页。我猜测这和37247端口有关,但不是很确定。

所以,请问这样的情况该如何解决?谢谢了。

雀魂大陆服务器关掉了,现在要梯子,所以要设置代理。启动程序时输入:mitmdump --mode upstream:http://100.10.10.10:2002/(即外层代理) -s 2)处建立脚本的路径

如果是用vpn(我是clash),代理ip为localhost和对应的端口,即mitmdump --mode upstream:http://127.0.0.1:7890(自己的端口) -s addons.py

具体原理参考这里https://www.cnblogs.com/CJTARRR/p/15752516.html