Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 更新docker内部pref配置出错 #739

Open
2 tasks done
LanYunDev opened this issue Apr 8, 2024 · 3 comments
Open
2 tasks done

[BUG] 更新docker内部pref配置出错 #739

LanYunDev opened this issue Apr 8, 2024 · 3 comments

Comments

@LanYunDev
Copy link

LanYunDev commented Apr 8, 2024

确认版本最新

  • 我已经确认在最新Action编译的版本中复现

检索issue

  • 我已经确认之前没有issue涉及此BUG

subconverter版本

0.9.0

转换过程

转换设置

复现步骤

使用这个文件pref.example.ini
运行此命令curl -F "[email protected]" http://localhost:25500/updateconf?type=form\&token=password即可复现报错.

期望结果

正常运行

实际结果

无法运行

错误信息

2024/04/08 Mon 10:35:44.158747 [1 Thread-1][INFO] SubConverter v0.9.0 starting up..
2024/04/08 Mon 10:35:44.159185 [1 Thread-1][INFO] Loading preference settings...
2024/04/08 Mon 10:35:44.159259 [1 Thread-1][FATL] Unable to load preference settings as INI. Reason: line 0: Empty document
@LanYunDev
Copy link
Author

实测v0.8.1能够运行.故已滚回旧版

tindy2013 added a commit that referenced this issue Apr 8, 2024
Fix not properly handling data from multipart-form POST (#739).
Fix not cleaning up request parameters when generating profiles (#741).
@tindy2013
Copy link
Owner

Fixed in referenced commit.

@LanYunDev
Copy link
Author

docker tindy2013/subconverter:0.9.0
仍然复现错误.
报错内容如下:
2024/04/12 Fri 08:38:37.062947 [1 Thread-3][VERB] handle_cmd: POST handle_uri: /updateconf?type=form&token=password
2024/04/12 Fri 08:38:37.062963 [1 Thread-3][VERB] handle_header: Accept: /|Content-Length: 11900|Content-Type: multipart/form-data; boundary=------------------------786afeec7f3925c6|Host: localhost:25500|User-Agent: curl/7.81.0|
2024/04/12 Fri 08:38:37.063822 [1 Thread-3][INFO] Loading preference settings...
2024/04/12 Fri 08:38:37.063901 [1 Thread-3][FATL] Unable to load preference settings as INI. Reason: line 0: Empty document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants