Open GoogleCodeExporter opened 9 years ago
!! Open config file "D:\WallProxy\local\config.py" failed, try
"D:\WallProxy\local\proxy.ini".
Traceback (most recent call last):
File "<string>", line 1391, in _39
File "<string>", line 1366, in ___
File "D:\WallProxy\local\src.zip\make_config.py", line 649, in make_config
File "D:\WallProxy\local\src.zip\make_config.py", line 20, in __init__
File "D:\WallProxy\local\python.exe\ConfigParser.py", line 305, in read
File "D:\WallProxy\local\python.exe\ConfigParser.py", line 512, in _read
MissingSectionHeaderError: File contains no section headers.
file: D:\WallProxy\local\proxy.ini, line: 1
'\xef\xbb\xbf[listen]\n'
!! Warning: You forgot to define a `config()` function in
"D:\WallProxy\local\config.py".
------------------------------------------------------------------------------
Welcome to use wallproxy, Copyright (C) 2009-2012 HustMoon Studio
Version: wallproxy/2.0.17 (python/2.7.3, gevent/1.0b3)
Listen : 0.0.0.0:8086
------------------------------------------------------------------------------
Initializing fake CA for https2http:
Please make sure you have imported "D:\WallProxy\local\cert\CA.crt" to the Trusted root CA list for your browser.
CA Information: WallProxy CA (2012-10-23 00:21:56 - 2032-10-23 00:21:56)
Wildcard Certificate: YES
Initializing UrlFetch for url fetch:
Global timeout: 60.0
Use keep alive: YES
------------------------------------------------------------------------------
Original comment by heeroyuyj
on 5 Nov 2012 at 12:25
MissingSectionHeaderError: File contains no section headers.
file: D:\WallProxy\local\proxy.ini, line: 1
'\xef\xbb\xbf[listen]\n'
这说明配置文件无效嘛,不应该带BOM的,最好别用MS
Notepad保存,如果找不到其他编辑器,可以用WEB界面保存。
timed out:把[urlfetch]timeout改大吧,20秒有点小。
Original comment by HUSTPub...@gmail.com
on 5 Nov 2012 at 6:04
[deleted comment]
我之前在公司用 WallProxy 时, notepad 修改 proxy.ini 再启动
WallProxy 都没出此错误
但是我也觉的应该是 notepad 给 UTF-8 加上了签名导致的问题
明天到上班的地方再研究看看
Original comment by heeroyuyj
on 5 Nov 2012 at 10:05
[deleted comment]
是不是改动了 autorange 里的 waitsize,不能把waitsize值改太小。
Original comment by y20...@gmail.com
on 5 Nov 2012 at 12:35
@6
no, 与此无关
这个是配置文件有问题的反馈, 启动就出错
Original comment by heeroyuyj
on 5 Nov 2012 at 12:40
\xef\xbb\xbf很明显就是UTF-8的BOM,通过web界面保存不会有这个bom
;
通过GUI保存原来有就有,原来没有就没有。
Original comment by www.eh...@gmail.com
on 5 Nov 2012 at 3:06
[deleted comment]
确定是 UTF8 的签名导致的
Original comment by heeroyuyj
on 6 Nov 2012 at 2:20
Moved to: Issue wallproxy:366
Original comment by heeroyuyj
on 2 Dec 2012 at 4:40
Original issue reported on code.google.com by
heeroyuyj
on 5 Nov 2012 at 12:24