asdlokj1qpi23 / subconverter

Utility to convert between various subscription format.Support hy2、hy and vless for singbox and clash meta
GNU General Public License v3.0
180 stars 32 forks source link

[BUG] [docker image] Unable to load preference settings as INI. Reason: line 0: Empty document #15

Open kaiwater opened 3 months ago

kaiwater commented 3 months ago

确认版本最新

检索issue

subconverter版本

0.9.3

转换过程

updateconf

转换设置

复制的pref.example.ini的内容, 只修改api_mode=true

复现步骤

curl -i -X POST -H "Content-Type: multipart/form-data" -F "data=@pref.example.ini" http://localhost:25500/updateconf?type=form\&token=password

容器里 可以看到pref.toml被反复更新日期,但size 0 。

期望结果

如同0.8.1一样,updateconf 工作正常

实际结果

配置未被updateconf 更新, 且一旦操作后因pref.toml 覆盖0字节后 ,该容器无法重启后再次响应port请求。

错误信息

container log:

2024/04/04 Thu 03:56:00.648014 [1 Thread-2][VERB] handle_cmd:    POST handle_uri:    /updateconf?type=form&token=password
2024/04/04 Thu 03:56:00.648032 [1 Thread-2][VERB] handle_header: Accept: */*|Connection: close|Content-Length: 11863|Content-Type: multipart/form-data; boundary=------------------------xxxxxxxxxxxxxxxxxx|Host: 127.0.0.1:25500|User-Agent: curl/8.4.0|
2024/04/04 Thu 03:56:00.648221 [1 Thread-2][INFO] Loading preference settings...
2024/04/04 Thu 03:56:00.648270 [1 Thread-2][FATL] Unable to load preference settings as INI. Reason: line 0: Empty document