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

clash 第一次启动时 luci 报错 #2169

Closed
fanck0605 opened this issue Mar 20, 2022 · 1 comment
Closed

clash 第一次启动时 luci 报错 #2169

fanck0605 opened this issue Mar 20, 2022 · 1 comment

Comments

@fanck0605
Copy link

fanck0605 commented Mar 20, 2022

错误日志:

Mon Mar 21 01:01:28 2022 daemon.err uhttpd[455]: stack traceback:
Mon Mar 21 01:01:28 2022 daemon.err uhttpd[455]: 	[C]: in function 'find'
Mon Mar 21 01:01:28 2022 daemon.err uhttpd[455]: 	/usr/lib/lua/luci/controller/openclash.lua:1362: in function 'trans_line'
Mon Mar 21 01:01:28 2022 daemon.err uhttpd[455]: 	/usr/lib/lua/luci/controller/openclash.lua:185: in function 'startlog'
Mon Mar 21 01:01:28 2022 daemon.err uhttpd[455]: 	/usr/lib/lua/luci/controller/openclash.lua:899: in function </usr/lib/lua/luci/controller/openclash.lua:896>
Mon Mar 21 01:01:28 2022 daemon.err uhttpd[455]: /usr/lib/lua/luci/controller/openclash.lua:1362: bad argument #1 to 'find' (string expected, got nil)

应该是因为这边引用了个未定义的变量

line_trans = trans_line(line)

vernesong added a commit that referenced this issue Mar 21, 2022
@fanck0605
Copy link
Author

lua 不是有 IDE 能用吗。配配环境 ,局部变量应该还是能检测的。

solomonricky pushed a commit to solomonricky/OpenClash that referenced this issue May 6, 2022
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

1 participant