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] 配置了环境变量YAO_ALLOW_FROM后yao启动报错 #325

Open
wwsheng009 opened this issue Feb 6, 2023 · 0 comments
Open

[Bug] 配置了环境变量YAO_ALLOW_FROM后yao启动报错 #325

wwsheng009 opened this issue Feb 6, 2023 · 0 comments

Comments

@wwsheng009
Copy link
Contributor

发生了什么?

在.env文件中配置了环境变量YAO_ALLOW_FROM不为空后yao启动报错

报错:
panic: handlers are already registered for path '/api/__yao/list/:id/component/:xpath/:method'

相关截图(必需)

最小可复现例子(必需)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

复现步骤

Steps to reproduce the behavior: 1. 2.

.env文件配置YAO_ALLOW_FROM="localhost"
yao start

Expected behavior 1. 2.
panic: handlers are already registered for path '/api/__yao/list/:id/component/:xpath/:method'

Context

  • Yao Version( Detail Version ):0.10.2
  • Xgen Version( Build Info ):
  • Platform:Arch LInux
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