【未解决】goagent打开google搜索出来的页面出错:ERROR crlf skip read host=’safebrowsing.clients.google.com’ error: BadStatusLine("”",)

【问题】

已经更新goagent为最新的3.1.8的版本了:

【记录】google搜出页面但是打不开,尝试更新goagent看看能否解决问题

但是结果用goagent期间,去打开google搜索出来的页面:

How to change title of Activity in Android? – Stack Overflow

after google search out click link

 

出错:

INFO - [Apr 10 12:53:26] 127.0.0.1:61242 "MOCK GET http://www.google.com.hk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCcQFjAA&url=%68%74%74%70%3a%2f%2f%73%74%61%63%6b%6f%76%65%72%66%6c%6f%77%2e%6
3%6f%6d%2f%71%75%65%73%74%69%6f%6e%73%2f%32%31%39%38%34%31%30%2f%68%6f%77%2d%74%6f%2d%63%68%61%6e%67%65%2d%74%69%74%6c%65%2d%6f%66%2d%61%63%74%69%76%69%74%79%2d%69%6e%2d%61%6e%64%72%6f%69%64&ei=xCNGU4
7-HM-2lQWKqIDIAQ&usg=AFQjCNFylFnignP4d_r9Bxwl_LArX-g7Aw&cad=rjt HTTP/1.1" 301 0
ERROR - [Apr 10 12:53:27] crlf skip read host='safebrowsing.clients.google.com' path='/safebrowsing/gethash?client=navclient-auto-ffox&appver=28.0&pver=2.2&wrkey=AKEgNiv1g0JRJLUgvicZlBbC_8K5FaIFadwJdt
TstHFbu2HG3DXGPNnyFyTJQJsEXbrCaXuGk8_V2Trt-O8pRpIMWuHYfRsV5A==' error: BadStatusLine("''",)
Traceback (most recent call last):
  File "proxy.py", line 1511, in create_http_request
  File "D:\tmp\dev_tools\goagent\goagent-goagent-v3.1.8-1-gcc91b38\goagent-goagent-cc91b38\local\python27.zip\httplib.py", line 409, in begin
  File "D:\tmp\dev_tools\goagent\goagent-goagent-v3.1.8-1-gcc91b38\goagent-goagent-cc91b38\local\python27.zip\httplib.py", line 373, in _read_status
BadStatusLine: ''

----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 61243)
Traceback (most recent call last):
  File "D:\tmp\dev_tools\goagent\goagent-goagent-v3.1.8-1-gcc91b38\goagent-goagent-cc91b38\local\python27.zip\SocketServer.py", line 593, in process_request_thread
  File "proxy.py", line 1828, in finish_request
  File "D:\tmp\dev_tools\goagent\goagent-goagent-v3.1.8-1-gcc91b38\goagent-goagent-cc91b38\local\python27.zip\SocketServer.py", line 649, in __init__
  File "D:\tmp\dev_tools\goagent\goagent-goagent-v3.1.8-1-gcc91b38\goagent-goagent-cc91b38\local\python27.zip\BaseHTTPServer.py", line 340, in handle
  File "D:\tmp\dev_tools\goagent\goagent-goagent-v3.1.8-1-gcc91b38\goagent-goagent-cc91b38\local\python27.zip\BaseHTTPServer.py", line 328, in handle_one_request
  File "proxy.py", line 1021, in do_METHOD
  File "proxy.py", line 895, in DIRECT
AttributeError: 'NoneType' object has no attribute 'status'
----------------------------------------

如图:

ERROR crlf skip read host safebrowsing.clients.google.com

【解决过程】

1.注意到,新打开的页面中:

newly opened link address is empty

其地址栏也是空的,而不是正常的那个google页面的地址:

http://www.google.com.hk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCcQFjAA&url=%68%74%74%70%3a%2f%2f%73%74%61%63%6b%6f%76%65%72%66%6c%6f%77%2e%63%6f%6d%2f%71%75%65%73%74%69%6f%6e%73%2f%32%31%39%38%34%31%30%2f%68%6f%77%2d%74%6f%2d%63%68%61%6e%67%65%2d%74%69%74%6c%65%2d%6f%66%2d%61%63%74%69%76%69%74%79%2d%69%6e%2d%61%6e%64%72%6f%69%64&ei=xCNGU47-HM-2lQWKqIDIAQ&usg=AFQjCNFylFnignP4d_r9Bxwl_LArX-g7Aw&cad=rjt

2.参考:

Issue 12944 – goagent – crlf skip read error: BadStatusLine("”",) – a gae proxy forked from gappproxy/wallproxy – Google Project Hosting

去试试:

把:

D:\tmp\dev_tools\goagent\goagent-goagent-v3.1.8-1-gcc91b38\goagent-goagent-cc91b38\local\proxy.ini

中的,当前所用的:

ipv4/http

部分的withgae从:

withgae = play.google.com|wenda.google.com.hk|clients.google.com|clients1.google.com

改为:

withgae = safebrowsing.clients.google.com

 

即:

change ipv4 http withgae to safebrowsing.clients.google.com

然后重新启动goagent试试效果:

结果虽然不出现上面的错误了,但是网页还是始终打不开。。。

3.试着再改回来:

[ipv4/http]
crlfsites = www.youtube.com|.google.com|.googlecode.com|.appspot.com
withgae = play.google.com|wenda.google.com.hk|clients.google.com|clients1.google.com
;withgae = safebrowsing.clients.google.com

结果是:

还是没用,虽然不出现上面的错误了,但是google.hk还是打不开。

4.此处已经确认当前Firefox是最新的28.0的版本的:

current latest 28.0 firefox

所以应该不是Firefox本身的问题。

5.试了多次,还是不能解决问题。

 

【总结】

此处未能彻底搞懂此处goagent出现的问题。

但是其实该问题也只是偶尔出现。

即使解决了,估计也还是不能解决上述google搜索结果打不开的问题。。。



发表评论

电子邮件地址不会被公开。 必填项已用*标注

无觅相关文章插件,快速提升流量